Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- colorForFileNumber :: Int -> ByteString
- allColorsMap :: IntMap ByteString
- allColorsLength :: Int
- allColorsList :: [ByteString]
- colorVividBlackBold :: ByteString
- colorVividBlueBold :: ByteString
- colorVividCyanBold :: ByteString
- colorVividGreenBold :: ByteString
- colorVividMagentaBold :: ByteString
- colorVividRedBold :: ByteString
- colorVividWhiteBold :: ByteString
- colorVividYellowBold :: ByteString
- colorDullBlackBold :: ByteString
- colorDullBlueBold :: ByteString
- colorDullCyanBold :: ByteString
- colorDullGreenBold :: ByteString
- colorDullMagentaBold :: ByteString
- colorDullRedBold :: ByteString
- colorDullWhiteBold :: ByteString
- colorDullYellowBold :: ByteString
- colorVividBlack :: ByteString
- colorVividBlue :: ByteString
- colorVividCyan :: ByteString
- colorVividGreen :: ByteString
- colorVividMagenta :: ByteString
- colorVividRed :: ByteString
- colorVividWhite :: ByteString
- colorVividYellow :: ByteString
- colorDullBlack :: ByteString
- colorDullBlue :: ByteString
- colorDullCyan :: ByteString
- colorDullGreen :: ByteString
- colorDullMagenta :: ByteString
- colorDullRed :: ByteString
- colorDullWhite :: ByteString
- colorDullYellow :: ByteString
- colorBold :: ByteString
- colorReset :: ByteString
- colorNull :: ByteString
- colorHelper :: ColorIntensity -> Color -> ByteString
- setSGRCodeBuilder :: [SGR] -> ByteString
Documentation
colorForFileNumber :: Int -> ByteString Source #
Find the corresponding color for the number in allColorsList
, taking the
mod of the Int
.
>>>
colorForFileNumber 0
"\ESC[1m\ESC[94m">>>
colorForFileNumber 1
"\ESC[1m\ESC[92m">>>
colorForFileNumber 4
"\ESC[1m\ESC[94m"
allColorsMap :: IntMap ByteString Source #
allColorsList
turned into an IntMap
for faster lookup.
allColorsLength :: Int Source #
length
of allColorsList
.
allColorsList :: [ByteString] Source #
List of all the colors that are used for highlighting filenames.
colorBold :: ByteString Source #
Change the intensity to BoldIntensity
.
colorReset :: ByteString Source #
Reset
the console color back to normal.
colorNull :: ByteString Source #
Empty string.
colorHelper :: ColorIntensity -> Color -> ByteString Source #
Helper for creating a ByteString
for an ANSI escape sequence color based on
a ColorIntensity
and a Color
.
setSGRCodeBuilder :: [SGR] -> ByteString Source #
Convert a list of SGR
to a ByteString
.