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