Black foreground.
Moduletext-ansi-0.3.0.1Haskell2010
String.ANSI
Contents
Synopsis
- value black
- value red
- value green
- value yellow
- value blue
- value magenta
- value cyan
- value white
- value brightBlack
- value brightRed
- value brightGreen
- value brightYellow
- value brightBlue
- value brightMagenta
- value brightCyan
- value brightWhite
- value rgb
- value blackBg
- value redBg
- value greenBg
- value yellowBg
- value blueBg
- value magentaBg
- value cyanBg
- value whiteBg
- value brightBlackBg
- value brightRedBg
- value brightGreenBg
- value brightYellowBg
- value brightBlueBg
- value brightMagentaBg
- value brightCyanBg
- value brightWhiteBg
- value rgbBg
- value bold
- value faint
- value italic
- value underline
- value doubleUnderline
- value strikethrough
- value frame
- value encircle
- value overline
- 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
Red 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
Black 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
Bold 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.