hscolour-1.12: Colourise Haskell code.ContentsIndex
Language.Haskell.HsColour.ANSI
Description
Partially taken from Hugs AnsiScreen.hs library:
Synopsis
highlight :: [Highlight] -> String -> String
cls :: String
goto :: Int -> Int -> String
data Highlight
= Normal
| Bold
| Dim
| Underscore
| Blink
| ReverseVideo
| Concealed
| Foreground Colour
| Background Colour
data Colour
= Black
| Red
| Green
| Yellow
| Blue
| Magenta
| Cyan
| White
colourCycle :: [Colour]
enableScrollRegion :: Int -> Int -> String
Documentation
highlight :: [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.
Constructors
Normal
Bold
Dim
Underscore
Blink
ReverseVideo
Concealed
Foreground Colour
Background Colour
show/hide Instances
data Colour
Colours supported by ANSI codes.
Constructors
Black
Red
Green
Yellow
Blue
Magenta
Cyan
White
show/hide Instances
colourCycle :: [Colour]
An infinite supply of colours.
enableScrollRegion :: Int -> Int -> String
Scrolling
Produced by Haddock version 2.3.0