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 Blinking
- 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
ANSI text blinking
Instances
Bounded Blinking Source # | |
Enum Blinking Source # | |
Eq Blinking Source # | |
Show Blinking Source # | |
Generic Blinking Source # | |
Validity Blinking Source # | |
Defined in Text.Colour.Code validate :: Blinking -> Validation # | |
type Rep Blinking Source # | |
Defined in Text.Colour.Code type Rep Blinking = D1 ('MetaData "Blinking" "Text.Colour.Code" "safe-coloured-text-0.2.0.1-5GFg0gc5PUEESE1K2b92mc" 'False) (C1 ('MetaCons "SlowBlinking" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "RapidBlinking" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NoBlinking" 'PrefixI 'False) (U1 :: Type -> Type))) |
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 #