ansi-terminal-0.8.2: 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
Eq SGR Source # 
Instance details

Defined in System.Console.ANSI.Types

Methods

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

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

Read SGR Source # 
Instance details

Defined in System.Console.ANSI.Types

Show SGR Source # 
Instance details

Defined in System.Console.ANSI.Types

Methods

showsPrec :: Int -> SGR -> ShowS #

show :: SGR -> String #

showList :: [SGR] -> ShowS #

data ConsoleLayer Source #

ANSI colors can be set on two different layers

Constructors

Foreground 
Background 
Instances
Bounded ConsoleLayer Source # 
Instance details

Defined in System.Console.ANSI.Types

Enum ConsoleLayer Source # 
Instance details

Defined in System.Console.ANSI.Types

Eq ConsoleLayer Source # 
Instance details

Defined in System.Console.ANSI.Types

Ord ConsoleLayer Source # 
Instance details

Defined in System.Console.ANSI.Types

Read ConsoleLayer Source # 
Instance details

Defined in System.Console.ANSI.Types

Show ConsoleLayer Source # 
Instance details

Defined in System.Console.ANSI.Types

Ix ConsoleLayer Source # 
Instance details

Defined in System.Console.ANSI.Types

data Color Source #

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

Constructors

Black 
Red 
Green 
Yellow 
Blue 
Magenta 
Cyan 
White 
Instances
Bounded Color Source # 
Instance details

Defined in System.Console.ANSI.Types

Enum Color Source # 
Instance details

Defined in System.Console.ANSI.Types

Eq Color Source # 
Instance details

Defined in System.Console.ANSI.Types

Methods

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

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

Ord Color Source # 
Instance details

Defined in System.Console.ANSI.Types

Methods

compare :: Color -> Color -> Ordering #

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

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

(>) :: Color -> Color -> Bool #

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

max :: Color -> Color -> Color #

min :: Color -> Color -> Color #

Read Color Source # 
Instance details

Defined in System.Console.ANSI.Types

Show Color Source # 
Instance details

Defined in System.Console.ANSI.Types

Methods

showsPrec :: Int -> Color -> ShowS #

show :: Color -> String #

showList :: [Color] -> ShowS #

Ix Color Source # 
Instance details

Defined in System.Console.ANSI.Types

data ColorIntensity Source #

ANSI colors come in two intensities

Constructors

Dull 
Vivid 
Instances
Bounded ColorIntensity Source # 
Instance details

Defined in System.Console.ANSI.Types

Enum ColorIntensity Source # 
Instance details

Defined in System.Console.ANSI.Types

Eq ColorIntensity Source # 
Instance details

Defined in System.Console.ANSI.Types

Ord ColorIntensity Source # 
Instance details

Defined in System.Console.ANSI.Types

Read ColorIntensity Source # 
Instance details

Defined in System.Console.ANSI.Types

Show ColorIntensity Source # 
Instance details

Defined in System.Console.ANSI.Types

Ix ColorIntensity Source # 
Instance details

Defined in System.Console.ANSI.Types

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 # 
Instance details

Defined in System.Console.ANSI.Types

Enum ConsoleIntensity Source # 
Instance details

Defined in System.Console.ANSI.Types

Eq ConsoleIntensity Source # 
Instance details

Defined in System.Console.ANSI.Types

Ord ConsoleIntensity Source # 
Instance details

Defined in System.Console.ANSI.Types

Read ConsoleIntensity Source # 
Instance details

Defined in System.Console.ANSI.Types

Show ConsoleIntensity Source # 
Instance details

Defined in System.Console.ANSI.Types

Ix ConsoleIntensity Source # 
Instance details

Defined in System.Console.ANSI.Types

data Underlining Source #

ANSI text underlining

Constructors

SingleUnderline 
DoubleUnderline

Not widely supported

NoUnderline 
Instances
Bounded Underlining Source # 
Instance details

Defined in System.Console.ANSI.Types

Enum Underlining Source # 
Instance details

Defined in System.Console.ANSI.Types

Eq Underlining Source # 
Instance details

Defined in System.Console.ANSI.Types

Ord Underlining Source # 
Instance details

Defined in System.Console.ANSI.Types

Read Underlining Source # 
Instance details

Defined in System.Console.ANSI.Types

Show Underlining Source # 
Instance details

Defined in System.Console.ANSI.Types

Ix Underlining Source # 
Instance details

Defined in System.Console.ANSI.Types

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 # 
Instance details

Defined in System.Console.ANSI.Types

Enum BlinkSpeed Source # 
Instance details

Defined in System.Console.ANSI.Types

Eq BlinkSpeed Source # 
Instance details

Defined in System.Console.ANSI.Types

Ord BlinkSpeed Source # 
Instance details

Defined in System.Console.ANSI.Types

Read BlinkSpeed Source # 
Instance details

Defined in System.Console.ANSI.Types

Show BlinkSpeed Source # 
Instance details

Defined in System.Console.ANSI.Types

Ix BlinkSpeed Source # 
Instance details

Defined in System.Console.ANSI.Types