ansi-terminal-0.7.1.1: Simple ANSI terminal support, with Windows compatibility

Safe HaskellSafe
LanguageHaskell98

System.Console.ANSI.Types

Description

Types used to represent SELECT GRAPHIC RENDITION (SGR) aspects.

Synopsis

Documentation

data SGR Source #

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

Instances

data ConsoleLayer Source #

ANSI colors can be set on two different layers

Constructors

Foreground 
Background 

Instances

Bounded ConsoleLayer Source # 
Enum ConsoleLayer Source # 
Eq ConsoleLayer Source # 
Ord ConsoleLayer Source # 
Read ConsoleLayer Source # 
Show ConsoleLayer Source # 
Ix ConsoleLayer Source # 

data Color Source #

ANSI colors: come in various intensities, which are controlled by ColorIntensity

Constructors

Black 
Red 
Green 
Yellow 
Blue 
Magenta 
Cyan 
White 

data ColorIntensity Source #

ANSI colors come in two intensities

Constructors

Dull 
Vivid 

Instances

Bounded ColorIntensity Source # 
Enum ColorIntensity Source # 
Eq ColorIntensity Source # 
Ord ColorIntensity Source # 
Read ColorIntensity Source # 
Show ColorIntensity Source # 
Ix ColorIntensity Source # 

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

Bounded ConsoleIntensity Source # 
Enum ConsoleIntensity Source # 
Eq ConsoleIntensity Source # 
Ord ConsoleIntensity Source # 
Read ConsoleIntensity Source # 
Show ConsoleIntensity Source # 
Ix ConsoleIntensity Source # 

data Underlining Source #

ANSI text underlining

Constructors

SingleUnderline 
DoubleUnderline

Not widely supported

NoUnderline 

Instances

Bounded Underlining Source # 
Enum Underlining Source # 
Eq Underlining Source # 
Ord Underlining Source # 
Read Underlining Source # 
Show Underlining Source # 
Ix Underlining Source # 

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

Bounded BlinkSpeed Source # 
Enum BlinkSpeed Source # 
Eq BlinkSpeed Source # 
Ord BlinkSpeed Source # 
Read BlinkSpeed Source # 
Show BlinkSpeed Source # 
Ix BlinkSpeed Source #