Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Types used to represent SELECT GRAPHIC RENDITION (SGR) aspects.
- data SGR
- data ConsoleLayer
- data Color
- data ColorIntensity
- data ConsoleIntensity
- data Underlining
- data BlinkSpeed
Documentation
ANSI Select Graphic Rendition command
Reset | |
SetConsoleIntensity ConsoleIntensity | |
SetItalicized Bool | Not widely supported: sometimes treated as swapping foreground and background |
SetUnderlining Underlining | |
SetBlinkSpeed BlinkSpeed | |
SetVisible Bool | Not widely supported |
SetSwapForegroundBackground Bool | |
SetColor ConsoleLayer ColorIntensity Color | |
SetRGBColor ConsoleLayer (Colour Float) | Supported from Windows 10 Creators Update |
data ConsoleLayer Source #
ANSI colors can be set on two different layers
ANSI colors: come in various intensities, which are controlled by ColorIntensity
data ColorIntensity Source #
ANSI colors come in two intensities
data ConsoleIntensity Source #
ANSI general console intensity: usually treated as setting the font style (e.g. BoldIntensity
causes text to be bold)
BoldIntensity | |
FaintIntensity | Not widely supported: sometimes treated as concealing text |
NormalIntensity |
data Underlining Source #
ANSI text underlining
SingleUnderline | |
DoubleUnderline | Not widely supported |
NoUnderline |
data BlinkSpeed Source #
ANSI blink speeds: values other than NoBlink
are not widely supported
SlowBlink | Less than 150 blinks per minute |
RapidBlink | More than 150 blinks per minute |
NoBlink |