| Safe Haskell | Safe |
|---|---|
| Language | Haskell98 |
System.Console.ANSI.Types
Description
Types used to represent SELECT GRAPHIC RENDITION (SGR) aspects.
Synopsis
- 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 | |
| SetRGBColor !ConsoleLayer !(Colour Float) | Supported from Windows 10 Creators Update |
data ConsoleLayer Source #
ANSI colors can be set on two different layers
Constructors
| Foreground | |
| Background |
Instances
ANSI colors: come in various intensities, which are controlled by
ColorIntensity
Instances
| Bounded Color Source # | |
| Enum Color Source # | |
Defined in System.Console.ANSI.Types Methods succ :: Color -> Color Source # pred :: Color -> Color Source # toEnum :: Int -> Color Source # fromEnum :: Color -> Int Source # enumFrom :: Color -> [Color] Source # enumFromThen :: Color -> Color -> [Color] Source # enumFromTo :: Color -> Color -> [Color] Source # enumFromThenTo :: Color -> Color -> Color -> [Color] Source # | |
| Eq Color Source # | |
| Ord Color Source # | |
Defined in System.Console.ANSI.Types | |
| Read Color Source # | |
| Show Color Source # | |
| Ix Color Source # | |
Defined in System.Console.ANSI.Types | |
data ColorIntensity Source #
ANSI colors come in two intensities
Instances
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 |
Instances
data Underlining Source #
ANSI text underlining
Constructors
| SingleUnderline | |
| DoubleUnderline | Not widely supported |
| NoUnderline |
Instances
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 |