Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Chunk = Chunk {
- chunkText :: !Text
- chunkItalic :: !(Maybe Bool)
- chunkConsoleIntensity :: !(Maybe ConsoleIntensity)
- chunkUnderlining :: !(Maybe Underlining)
- chunkBlinking :: !(Maybe Blinking)
- chunkForeground :: !(Maybe Colour)
- chunkBackground :: !(Maybe Colour)
- plainChunk :: TerminalCapabilities -> Chunk -> Bool
- plainColour :: TerminalCapabilities -> Colour -> Bool
- renderChunksUtf8BS :: Foldable f => TerminalCapabilities -> f Chunk -> ByteString
- renderChunksBS :: Foldable f => TerminalCapabilities -> f Chunk -> ByteString
- renderChunksUtf8BSBuilder :: Foldable f => TerminalCapabilities -> f Chunk -> Builder
- renderChunks :: Foldable f => TerminalCapabilities -> f Chunk -> Builder
- renderChunksText :: Foldable f => TerminalCapabilities -> f Chunk -> Text
- renderChunksLazyText :: Foldable f => TerminalCapabilities -> f Chunk -> Text
- renderChunksBuilder :: Foldable f => TerminalCapabilities -> f Chunk -> Builder
- renderChunkUtf8BS :: TerminalCapabilities -> Chunk -> ByteString
- renderChunkBS :: TerminalCapabilities -> Chunk -> ByteString
- renderChunkUtf8BSBuilder :: TerminalCapabilities -> Chunk -> Builder
- renderChunk :: TerminalCapabilities -> Chunk -> Builder
- renderChunkText :: TerminalCapabilities -> Chunk -> Text
- renderChunkLazyText :: TerminalCapabilities -> Chunk -> Text
- renderChunkBuilder :: 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
- noUnderline :: Chunk -> Chunk
- slowBlinking :: Chunk -> Chunk
- rapidBlinking :: Chunk -> Chunk
- noBlinking :: 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 #
renderChunksUtf8BS :: Foldable f => TerminalCapabilities -> f Chunk -> ByteString Source #
Render chunks directly to a UTF8-encoded Bytestring
.
renderChunksBS :: Foldable f => TerminalCapabilities -> f Chunk -> ByteString Source #
Deprecated: Use renderChunksText, or renderChunksUtf8BS if you must.
Deprecated synonym for renderChunksUtf8BS
renderChunksUtf8BSBuilder :: Foldable f => TerminalCapabilities -> f Chunk -> Builder Source #
Render chunks to a UTF8-encoded ByteString
Builder
.
renderChunks :: Foldable f => TerminalCapabilities -> f Chunk -> Builder Source #
Deprecated: Use renderChunksBuilder, or renderChunksUtf8BSBuilder if you must.
Deprecated synonym for renderChunksUtf8BSBuilder
renderChunksText :: Foldable f => TerminalCapabilities -> f Chunk -> Text Source #
Render chunks directly to strict Text
.
renderChunksLazyText :: Foldable f => TerminalCapabilities -> f Chunk -> Text Source #
Render chunks directly to lazy Text
.
renderChunksBuilder :: Foldable f => TerminalCapabilities -> f Chunk -> Builder Source #
renderChunkUtf8BS :: TerminalCapabilities -> Chunk -> ByteString Source #
Render a chunk directly to a UTF8-encoded Bytestring
.
renderChunkBS :: TerminalCapabilities -> Chunk -> ByteString Source #
Deprecated: Use renderChunkText, or renderChunkUtf8BS if you must.
Deprecated synonym for renderChunkUtf8BS
renderChunkUtf8BSBuilder :: TerminalCapabilities -> Chunk -> Builder Source #
Render a chunk directly to a UTF8-encoded Bytestring
Builder
.
renderChunk :: TerminalCapabilities -> Chunk -> Builder Source #
Deprecated: Use renderChunkBuilder, or renderChunkUtf8BSBuilder if you must.
Deprecated synonym for renderChunkUtf8BSBuilder
renderChunkText :: TerminalCapabilities -> Chunk -> Text Source #
Render a chunk directly to strict Text
.
renderChunkLazyText :: TerminalCapabilities -> Chunk -> Text Source #
Render a chunk directly to strict Text
.
doubleUnderline :: Chunk -> Chunk Source #
noUnderline :: Chunk -> Chunk Source #
slowBlinking :: Chunk -> Chunk Source #
rapidBlinking :: Chunk -> Chunk Source #
noBlinking :: 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.