Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Provides a ChExtendedPrinter
that handles colours using standardized ANSI codes.
- newtype AnsiPrinterT m a = AnsiPrinter {
- runAnsiPrinterT :: [Colour] -> m (a, [Colour])
- mkColourInt :: Colour -> ColorIntensity
- mkColourCode :: Colour -> Color
Documentation
newtype AnsiPrinterT m a Source
A ChExtendedPrinter
that uses ANSI colour codes.
AnsiPrinter | |
|
mkColourInt :: Colour -> ColorIntensity Source
Convert Chatty's colour intensity to ansi-terminal's one
mkColourCode :: Colour -> Color Source
Convert Chatty's colour tone to ansi-terminal's one