Copyright | (c) Dennis Gosnell 2016 |
---|---|
License | BSD-style (see LICENSE file) |
Maintainer | cdep.illabout@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data ColorOptions = ColorOptions {}
- defaultColorOptionsDarkBg :: ColorOptions
- defaultColorQuoteDarkBg :: Builder
- defaultColorStringDarkBg :: Builder
- defaultColorErrorDarkBg :: Builder
- defaultColorNumDarkBg :: Builder
- defaultColorRainbowParensDarkBg :: [Builder]
- defaultColorOptionsLightBg :: ColorOptions
- defaultColorQuoteLightBg :: Builder
- defaultColorStringLightBg :: Builder
- defaultColorErrorLightBg :: Builder
- defaultColorNumLightBg :: Builder
- defaultColorRainbowParensLightBg :: [Builder]
- colorVividBlackBold :: Builder
- colorVividBlueBold :: Builder
- colorVividCyanBold :: Builder
- colorVividGreenBold :: Builder
- colorVividMagentaBold :: Builder
- colorVividRedBold :: Builder
- colorVividWhiteBold :: Builder
- colorVividYellowBold :: Builder
- colorDullBlackBold :: Builder
- colorDullBlueBold :: Builder
- colorDullCyanBold :: Builder
- colorDullGreenBold :: Builder
- colorDullMagentaBold :: Builder
- colorDullRedBold :: Builder
- colorDullWhiteBold :: Builder
- colorDullYellowBold :: Builder
- colorVividBlack :: Builder
- colorVividBlue :: Builder
- colorVividCyan :: Builder
- colorVividGreen :: Builder
- colorVividMagenta :: Builder
- colorVividRed :: Builder
- colorVividWhite :: Builder
- colorVividYellow :: Builder
- colorDullBlack :: Builder
- colorDullBlue :: Builder
- colorDullCyan :: Builder
- colorDullGreen :: Builder
- colorDullMagenta :: Builder
- colorDullRed :: Builder
- colorDullWhite :: Builder
- colorDullYellow :: Builder
- colorBold :: Builder
- colorReset :: Builder
- colorNull :: Builder
- colorHelper :: ColorIntensity -> Color -> Builder
- setSGRCodeBuilder :: [SGR] -> Builder
Documentation
data ColorOptions Source #
These options are for colorizing the output of functions like pPrint
.
For example, if you set colorQuote
to something like colorVividBlueBold
,
then the quote character ("
) will be output as bright blue in bold.
If you don't want to use a color for one of the options, use colorNull
.
ColorOptions | |
|
Instances
defaultColorOptionsDarkBg :: ColorOptions Source #
Default color options for use on a dark background.
colorQuote
is defaultColorQuoteDarkBg
. colorString
is
defaultColorStringDarkBg
. colorError
is defaultColorErrorDarkBg
.
colorNum
is defaultColorNumDarkBg
. colorRainbowParens
is
defaultColorRainboxParensDarkBg
.
defaultColorQuoteDarkBg :: Builder Source #
Default color for colorQuote
for dark backgrounds. This is
colorVividWhiteBold
.
defaultColorStringDarkBg :: Builder Source #
Default color for colorString
for dark backgrounds. This is
colorVividBlueBold
.
defaultColorErrorDarkBg :: Builder Source #
Default color for colorError
for dark backgrounds. This is
colorVividRedBold
.
defaultColorNumDarkBg :: Builder Source #
Default color for colorNum
for dark backgrounds. This is
colorVividGreenBold
.
defaultColorRainbowParensDarkBg :: [Builder] Source #
Default colors for colorRainbowParens
for dark backgrounds.
defaultColorOptionsLightBg :: ColorOptions Source #
Default color options for use on a light background.
colorQuote
is defaultColorQuoteLightBg
. colorString
is
defaultColorStringLightBg
. colorError
is defaultColorErrorLightBg
.
colorNum
is defaultColorNumLightBg
. colorRainbowParens
is
defaultColorRainboxParensLightBg
.
defaultColorQuoteLightBg :: Builder Source #
Default color for colorQuote
for light backgrounds. This is
colorVividWhiteBold
.
defaultColorStringLightBg :: Builder Source #
Default color for colorString
for light backgrounds. This is
colorVividBlueBold
.
defaultColorErrorLightBg :: Builder Source #
Default color for colorError
for light backgrounds. This is
colorVividRedBold
.
defaultColorNumLightBg :: Builder Source #
Default color for colorNum
for light backgrounds. This is
colorVividGreenBold
.
defaultColorRainbowParensLightBg :: [Builder] Source #
Default colors for colorRainbowParens
for light backgrounds.
Change the intensity to BoldIntensity
.
colorReset :: Builder Source #
Reset
the console color back to normal.
colorHelper :: ColorIntensity -> Color -> Builder Source #
Helper for creating a Builder
for an ANSI escape sequence color based on
a ColorIntensity
and a Color
.