ansi-terminal-0.6.3.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 #

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 

Instances

Eq SGR # 

Methods

(==) :: SGR -> SGR -> Bool #

(/=) :: SGR -> SGR -> Bool #

Ord SGR # 

Methods

compare :: SGR -> SGR -> Ordering #

(<) :: SGR -> SGR -> Bool #

(<=) :: SGR -> SGR -> Bool #

(>) :: SGR -> SGR -> Bool #

(>=) :: SGR -> SGR -> Bool #

max :: SGR -> SGR -> SGR #

min :: SGR -> SGR -> SGR #

Read SGR # 
Show SGR # 

Methods

showsPrec :: Int -> SGR -> ShowS #

show :: SGR -> String #

showList :: [SGR] -> ShowS #

data ConsoleLayer #

ANSI colors can be set on two different layers

Constructors

Foreground 
Background 

Instances

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

data Color #

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

Constructors

Black 
Red 
Green 
Yellow 
Blue 
Magenta 
Cyan 
White 

data ColorIntensity #

ANSI colors come in two intensities

Constructors

Dull 
Vivid 

Instances

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

data ConsoleIntensity #

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 # 
Enum ConsoleIntensity # 
Eq ConsoleIntensity # 
Ord ConsoleIntensity # 
Read ConsoleIntensity # 
Show ConsoleIntensity # 
Ix ConsoleIntensity # 

data Underlining #

ANSI text underlining

Constructors

SingleUnderline 
DoubleUnderline

Not widely supported

NoUnderline 

Instances

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

data BlinkSpeed #

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 # 
Enum BlinkSpeed # 
Eq BlinkSpeed # 
Ord BlinkSpeed # 
Read BlinkSpeed # 
Show BlinkSpeed # 
Ix BlinkSpeed #