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.

#prefix Source

prefix :: String

The prefix for all escape codes.

#colorSuffix Source

colorSuffix :: String

The suffix for escape codes; note that this is only required for colors.

#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

Instances

#GraphicsParam Source

data GraphicsParam

A graphics parameter, controls how text appears; for example, bold, underlined, foreground color, background color.

Constructors

Instances

#codeForRenderingMode Source

#colorCode Source