hscolour-1.20.2: Colourise Haskell code.

Safe HaskellSafe-Infered

Language.Haskell.HsColour.ANSI

Description

Partially taken from Hugs AnsiScreen.hs library:

Synopsis

Documentation

highlightG :: TerminalType -> [Highlight] -> String -> String

Make the given string appear with all of the listed highlights

cls :: String

Clear the screen.

goto :: Int -> Int -> String

Move the screen cursor to the given position.

data Highlight

Types of highlighting supported by ANSI codes (and some extra styles).

data Colour

Colours supported by ANSI codes.

colourCycle :: [Colour]

An infinite supply of colours.

enableScrollRegion :: Int -> Int -> String

Scrolling

data TerminalType

Constructors

Ansi16Colour

\033[Xm-style escape sequences (with X =~ [34][0-7])

XTerm256Compatible

Ansi16Colour, and also \033[Y8;5;Zm]-style escape sequences (with Y =~ [3,4] and Z an integer in [0,255] with the XTerm colour cube semantics).