Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Basic color helpers for prettifying console output.
Documentation
color :: ColorIntensity -> Color -> String -> String Source #
Wrap a string in ANSI codes to set and reset foreground colour.
bgColor :: ColorIntensity -> Color -> String -> String Source #
Wrap a string in ANSI codes to set and reset background colour.
ANSI colors: come in various intensities, which are controlled by
ColorIntensity
data ColorIntensity #
ANSI colors come in two intensities