Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- asciiEscape :: Char
- csiStart :: Char
- csiDelimiter :: Char
- newtype CSI = SGR [SGR]
- renderCSIUtf8BS :: CSI -> ByteString
- renderCSIText :: CSI -> Text
- renderCSILazyText :: CSI -> Text
- renderCSI :: CSI -> Builder
- data SGR
- renderCSIParams :: [Word8] -> Builder
- renderCSIParam :: Word8 -> Builder
- sgrToCSIParams :: SGR -> [Word8]
- data Underlining
- data ConsoleIntensity
- data ColourIntensity
- data ConsoleLayer
- data TerminalColour
- terminalColourSGRParameter :: TerminalColour -> Word8
- terminalColourFromIndex :: Word8 -> Maybe TerminalColour
Documentation
asciiEscape :: Char Source #
csiDelimiter :: Char Source #
renderCSIUtf8BS :: CSI -> ByteString Source #
Render a CSI directly to ByteString
using UTF8.
You probably want to use renderCSI
instead.
This is just for testing.
renderCSIText :: CSI -> Text Source #
renderCSILazyText :: CSI -> Text Source #
Instances
renderCSIParams :: [Word8] -> Builder Source #
renderCSIParam :: Word8 -> Builder Source #
sgrToCSIParams :: SGR -> [Word8] Source #
data Underlining Source #
ANSI text underlining
Instances
data ConsoleIntensity Source #
ANSI general console intensity: usually treated as setting the font style
(e.g. BoldIntensity
causes text to be bold)
Instances
data ColourIntensity Source #
ANSI's standard colours come in two intensities
Instances
data ConsoleLayer Source #
ANSI colours can be set on two different layers
Instances
data TerminalColour Source #