Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Chunk = Chunk {
- chunkText :: !Text
- chunkItalic :: !(Maybe Bool)
- chunkConsoleIntensity :: !(Maybe ConsoleIntensity)
- chunkUnderlining :: !(Maybe Underlining)
- chunkForeground :: !(Maybe Colour)
- chunkBackground :: !(Maybe Colour)
- plainChunk :: TerminalCapabilities -> Chunk -> Bool
- plainColour :: TerminalCapabilities -> Colour -> Bool
- renderChunksBS :: Foldable f => TerminalCapabilities -> f Chunk -> ByteString
- renderChunks :: Foldable f => TerminalCapabilities -> f Chunk -> Builder
- renderChunkBS :: TerminalCapabilities -> Chunk -> ByteString
- renderChunk :: TerminalCapabilities -> Chunk -> Builder
- chunkSGR :: TerminalCapabilities -> Chunk -> [SGR]
- chunk :: Text -> Chunk
- fore :: Colour -> Chunk -> Chunk
- back :: Colour -> Chunk -> Chunk
- bold :: Chunk -> Chunk
- faint :: Chunk -> Chunk
- italic :: Chunk -> Chunk
- underline :: Chunk -> Chunk
- doubleUnderline :: Chunk -> Chunk
- data Colour
- colourSGR :: TerminalCapabilities -> ConsoleLayer -> Colour -> Maybe SGR
- black :: Colour
- red :: Colour
- green :: Colour
- yellow :: Colour
- blue :: Colour
- magenta :: Colour
- cyan :: Colour
- white :: Colour
- brightBlack :: Colour
- brightRed :: Colour
- brightGreen :: Colour
- brightYellow :: Colour
- brightBlue :: Colour
- brightMagenta :: Colour
- brightCyan :: Colour
- brightWhite :: Colour
- colour256 :: Word8 -> Colour
- color256 :: Word8 -> Colour
- colourRGB :: Word8 -> Word8 -> Word8 -> Colour
- colorRGB :: Word8 -> Word8 -> Word8 -> Colour
Documentation
Chunk | |
|
Instances
plainChunk :: TerminalCapabilities -> Chunk -> Bool Source #
plainColour :: TerminalCapabilities -> Colour -> Bool Source #
renderChunksBS :: Foldable f => TerminalCapabilities -> f Chunk -> ByteString Source #
Render a chunk directly to bytestring.
renderChunks :: Foldable f => TerminalCapabilities -> f Chunk -> Builder Source #
Render chunks to a bytestring builder
renderChunkBS :: TerminalCapabilities -> Chunk -> ByteString Source #
Render a chunk directly to bytestring.
renderChunk :: TerminalCapabilities -> Chunk -> Builder Source #
Render a chunk to a bytestring builder
doubleUnderline :: Chunk -> Chunk Source #
Instances
colourSGR :: TerminalCapabilities -> ConsoleLayer -> Colour -> Maybe SGR Source #
brightBlack :: Colour Source #
brightGreen :: Colour Source #
brightBlue :: Colour Source #
brightCyan :: Colour Source #
brightWhite :: Colour Source #
colour256 :: Word8 -> Colour Source #
Bulid an 8-bit RGB Colour
This will not be rendered unless With8BitColours
is used.