Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- asciiEscape :: Word8
- csiStart :: Word8
- csiDelimiter :: Word8
- newtype CSI = SGR [SGR]
- renderCSIBS :: CSI -> ByteString
- renderCSI :: CSI -> Builder
- data SGR
- csiParamsToWords :: [Word8] -> Builder
- csiParamToWord :: Word8 -> Builder
- sgrToCSIParams :: SGR -> [Word8]
- data Underlining
- data ConsoleIntensity
- data ColourIntensity
- data ConsoleLayer
- data TerminalColour
- terminalColourSGRParameter :: TerminalColour -> Word8
- terminalColourFromIndex :: Word8 -> Maybe TerminalColour
Documentation
asciiEscape :: Word8 Source #
csiDelimiter :: Word8 Source #
renderCSIBS :: CSI -> ByteString Source #
Render a CSI directly to bytestring.
You probably want to use renderCSI
instead.
This is just for testing.
Instances
csiParamsToWords :: [Word8] -> Builder Source #
csiParamToWord :: 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 #