Module
Ansi.Codes
- Package
- purescript-ansi
- Repository
- hdgarrood/purescript-ansi
This module defines a data type representing ANSI escape codes, as well as functions for serialising them as Strings.
#colorSuffix Source
colorSuffix :: StringThe suffix for escape codes; note that this is only required for colors.
#EscapeCode Source
data EscapeCodeAn ANSI escape code. Not all sequences are implemented. See: https://en.wikipedia.org/wiki/ANSI_escape_code.
Constructors
Up IntDown IntForward IntBack IntNextLine IntPreviousLine IntHorizontalAbsolute IntPosition Int IntEraseData EraseParamEraseLine EraseParamScrollUp IntScrollDown IntGraphics (NonEmptyList GraphicsParam)SavePositionRestorePositionQueryPositionHideCursorShowCursor
Instances
#escapeCodeToString Source
escapeCodeToString :: EscapeCode -> StringConvert an escape code to the form recognised by terminals.
#EraseParam Source
data EraseParamSpecifies how much text to erase.
- ToEnd: erase from the cursor to the end of the line or screen.
- FromBeginning: erase to the cursor from the beginning of the line or screen.
- Entire: erase the entire line or screen.
Constructors
Instances
#GraphicsParam Source
data GraphicsParamA graphics parameter, controls how text appears; for example, bold, underlined, foreground color, background color.
Constructors
Instances
#RenderingMode Source
#Color Source
data ColorThe standard set of 16 ANSI colors.
Constructors
BlackRedGreenYellowBlueMagentaCyanWhiteBrightBlackBrightRedBrightGreenBrightYellowBrightBlueBrightMagentaBrightCyanBrightWhite
Instances
- Modules
- Ansi.
Codes - Ansi.
Output