Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- black :: Builder -> Builder
- red :: Builder -> Builder
- green :: Builder -> Builder
- yellow :: Builder -> Builder
- blue :: Builder -> Builder
- magenta :: Builder -> Builder
- cyan :: Builder -> Builder
- white :: Builder -> Builder
- brightBlack :: Builder -> Builder
- brightRed :: Builder -> Builder
- brightGreen :: Builder -> Builder
- brightYellow :: Builder -> Builder
- brightBlue :: Builder -> Builder
- brightMagenta :: Builder -> Builder
- brightCyan :: Builder -> Builder
- brightWhite :: Builder -> Builder
- rgb :: Word8 -> Word8 -> Word8 -> Builder -> Builder
- blackBg :: Builder -> Builder
- redBg :: Builder -> Builder
- greenBg :: Builder -> Builder
- yellowBg :: Builder -> Builder
- blueBg :: Builder -> Builder
- magentaBg :: Builder -> Builder
- cyanBg :: Builder -> Builder
- whiteBg :: Builder -> Builder
- brightBlackBg :: Builder -> Builder
- brightRedBg :: Builder -> Builder
- brightGreenBg :: Builder -> Builder
- brightYellowBg :: Builder -> Builder
- brightBlueBg :: Builder -> Builder
- brightMagentaBg :: Builder -> Builder
- brightCyanBg :: Builder -> Builder
- brightWhiteBg :: Builder -> Builder
- rgbBg :: Word8 -> Word8 -> Word8 -> Builder -> Builder
- bold :: Builder -> Builder
- faint :: Builder -> Builder
- italic :: Builder -> Builder
- underline :: Builder -> Builder
- doubleUnderline :: Builder -> Builder
- strikethrough :: Builder -> Builder
- frame :: Builder -> Builder
- encircle :: Builder -> Builder
- overline :: Builder -> Builder
Documentation
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
brightBlack :: Builder -> Builder Source #
Bright black foreground.
brightGreen :: Builder -> Builder Source #
Bright green foreground.
brightYellow :: Builder -> Builder Source #
Bright yellow foreground.
brightBlue :: Builder -> Builder Source #
Bright blue foreground.
brightMagenta :: Builder -> Builder Source #
Bright magenta foreground.
brightCyan :: Builder -> Builder Source #
Bright cyan foreground.
brightWhite :: Builder -> Builder Source #
Bright white foreground.
Background color
brightBlackBg :: Builder -> Builder Source #
Bright black background.
brightRedBg :: Builder -> Builder Source #
Bright red background.
brightGreenBg :: Builder -> Builder Source #
Bright green background.
brightYellowBg :: Builder -> Builder Source #
Bright yellow background.
brightBlueBg :: Builder -> Builder Source #
Bright blue background.
brightMagentaBg :: Builder -> Builder Source #
Bright magenta background.
brightCyanBg :: Builder -> Builder Source #
Bright cyan background.
brightWhiteBg :: Builder -> Builder Source #
Bright white background.
Style
doubleUnderline :: Builder -> Builder Source #
D̳o̳u̳b̳l̳e̳ ̳u̳n̳d̳e̳r̳l̳i̳n̳e̳ style.
strikethrough :: Builder -> Builder Source #
S̶t̶r̶i̶k̶e̶t̶h̶r̶o̶u̶g̶h̶ style.