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 :: String
The suffix for escape codes; note that this is only required for colors.
#EscapeCode Source
data EscapeCode
An ANSI escape code. Not all sequences are implemented. See: https://en.wikipedia.org/wiki/ANSI_escape_code.
Constructors
#escapeCodeToString Source
escapeCodeToString :: EscapeCode -> String
Convert an escape code to the form recognised by terminals.
#EraseParam Source
data EraseParam
Specifies 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
#GraphicsParam Source
data GraphicsParam
A graphics parameter, controls how text appears; for example, bold, underlined, foreground color, background color.
Constructors
- Modules
- Ansi.
Codes - Ansi.
Output