rainbow-0.10.0.0: Print text to terminal with colors and effects

Safe HaskellSafe-Inferred

System.Console.Rainbow.Colors

Contents

Description

Ordinarily you should not need this module. Typically you will just need to use System.Console.Rainbow.ColorChunks, which is re-exported from System.Console.Rainbow. However this module can be useful if you want names for individual colors, as opposed to names for chunks, which is what System.Console.Rainbow.ColorChunks provides.

Synopsis

Documentation

newtype Color8 Source

Color for an 8-color terminal. Nothing indicates to use the default color for the terminal. The Color should have a number in the range from 0 to 7 (inclusive) but the module does nothing to enforce this. Use the names prefixed with c256_ if you want to stay within the correc range of colors.

Constructors

Color8 

Fields

unColor8 :: Maybe Color
 

Instances

newtype Color256 Source

Color for an 256-color terminal. Nothing indicates to use the default color for the terminal. The Color should have a number in the range from 0 to 255 (inclusive) but the module does nothing to enforce this. Use the names prefixed with c256_ if you want to stay within the correc range of colors.

Constructors

Color256 

8 color

256 color