| Safe Haskell | Safe |
|---|---|
| Language | Haskell98 |
System.Console.ANSI.Types
Description
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
Constructors
| 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 |
data ConsoleLayer Source #
ANSI colors can be set on two different layers
Constructors
| Foreground | |
| Background |
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)
Constructors
| BoldIntensity | |
| FaintIntensity | Not widely supported: sometimes treated as concealing text |
| NormalIntensity |
data Underlining Source #
ANSI text underlining
Constructors
| SingleUnderline | |
| DoubleUnderline | Not widely supported |
| NoUnderline |
data BlinkSpeed Source #
ANSI blink speeds: values other than NoBlink are not widely supported
Constructors
| SlowBlink | Less than 150 blinks per minute |
| RapidBlink | More than 150 blinks per minute |
| NoBlink |
Instances