Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- data ANSICode
- applyANSI :: String -> ANSICode -> String
- fgBlack :: ANSICode
- fgRed :: ANSICode
- fgGreen :: ANSICode
- fgYellow :: ANSICode
- fgBlue :: ANSICode
- fgMagenta :: ANSICode
- fgCyan :: ANSICode
- fgWhite :: ANSICode
- fgBlackL :: ANSICode
- fgRedL :: ANSICode
- fgGreenL :: ANSICode
- fgYellowL :: ANSICode
- fgBlueL :: ANSICode
- fgMagentaL :: ANSICode
- fgCyanL :: ANSICode
- fgWhiteL :: ANSICode
- bgBlack :: ANSICode
- bgRed :: ANSICode
- bgGreen :: ANSICode
- bgYellow :: ANSICode
- bgBlue :: ANSICode
- bgMagenta :: ANSICode
- bgCyan :: ANSICode
- bgWhite :: ANSICode
- bgBlackL :: ANSICode
- bgRedL :: ANSICode
- bgGreenL :: ANSICode
- bgYellowL :: ANSICode
- bgBlueL :: ANSICode
- bgMagentaL :: ANSICode
- bgCyanL :: ANSICode
- bgWhiteL :: ANSICode
The ANSICode
Encoding ANSI-code
Utilities
apply ANSI setting onto the given string. For example,
>>>
applyANSI "haskell" (fgCyanL <> ESC_Bold <> mempty)
"\ESC[96;1m\STXhaskell\ESC[0m\STX"