vty-5.11.3: A simple terminal UI library

Safe HaskellNone
LanguageHaskell2010

Graphics.Vty.Output.Interface

Synopsis

Documentation

data Mode Source #

Modal terminal features that can be enabled and disabled.

Constructors

Mouse 
BracketedPaste 

data Output Source #

Constructors

Output 

Fields

data DisplayContext Source #

Constructors

DisplayContext 

Fields

writeUtf8Text :: ByteString -> Write Source #

All terminals serialize UTF8 text to the terminal device exactly as serialized in memory.

outputPicture :: MonadIO m => DisplayContext -> Picture -> m () Source #

Displays the given Picture.

  1. The image is cropped to the display size.
  2. Converted into a sequence of attribute changes and text spans.
  3. The cursor is hidden.
  4. Serialized to the display.
  5. The cursor is then shown and positioned or kept hidden.

todo: specify possible IO exceptions. abstract from IO monad to a MonadIO instance.

data CursorOutputMap Source #

The cursor position is given in X,Y character offsets. Due to multi-column characters this needs to be translated to column, row positions.

Constructors

CursorOutputMap 

Fields

limitAttrForDisplay :: Output -> Attr -> Attr Source #

Not all terminals support all display attributes. This filters a display attribute to what the given terminal can display.