Black foreground.
Moduletext-ansi-0.3.0.1Haskell2010
Text.Builder.ANSI
- 43 values
- Packagetext-ansi-0.3.0.1
- Exports43
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceANSI.hs
Text styling for ANSI terminals using SGR codes, as defined by the ECMA-48 standard.
Supports foreground/background color, bold/faint intensity, italic, single/double underline, strikethrough, frame, encircle, and overline escape sequences. Some styles may not work on your terminal.
Also features terminal detection, so redirecting styled output to a file will automatically strip the ANSI escape sequences.
Foreground color
17 declarationsRed foreground.
Green foreground.
Yellow foreground.
Blue foreground.
Magenta foreground.
Cyan foreground.
White foreground.
Bright black foreground.
Bright red foreground.
Bright green foreground.
Bright yellow foreground.
Bright blue foreground.
Bright magenta foreground.
Bright cyan foreground.
Bright white foreground.
RGB foreground.
Background color
17 declarationsBlack background.
Red background.
Green background.
Yellow background.
Blue background.
Magenta background.
Cyan background.
White background.
Bright black background.
Bright red background.
Bright green background.
Bright yellow background.
Bright blue background.
Bright magenta background.
Bright cyan background.
Bright white background.
RGB background.
Style
9 declarationsBold style (high intensity).
Faint style (low intensity).
Italic style.
U̲n̲d̲e̲r̲l̲i̲n̲e̲ style.
D̳o̳u̳b̳l̳e̳ ̳u̳n̳d̳e̳r̳l̳i̳n̳e̳ style.
S̶t̶r̶i̶k̶e̶t̶h̶r̶o̶u̶g̶h̶ style.
Frame style.
Encircle style.
O̅v̅e̅r̅l̅i̅n̅e̅ style.