hscolour-1.13: Colourise Haskell code.Source codeContentsIndex
Language.Haskell.HsColour.ANSI
Description
Partially taken from Hugs AnsiScreen.hs library:
Synopsis
highlightOn
highlightOff
highlight :: [Highlight] -> String -> String
cleareol
clearbol
clearline
clearDown
clearUp
cls :: String
goto :: Int -> Int -> String
cursorUp
cursorDown
cursorLeft
cursorRight
savePosition
restorePosition
data Highlight
= Normal
| Bold
| Dim
| Underscore
| Blink
| ReverseVideo
| Concealed
| Foreground Colour
| Background Colour
| Italic
data Colour
= Black
| Red
| Green
| Yellow
| Blue
| Magenta
| Cyan
| White
colourCycle :: [Colour]
enableScrollRegion :: Int -> Int -> String
scrollUp
scrollDown
lineWrap
Documentation
highlightOn
highlightOff
highlight :: [Highlight] -> String -> StringSource
Make the given string appear with all of the listed highlights
cleareol
clearbol
clearline
clearDown
clearUp
cls :: StringSource
Clear the screen.
goto :: Int -> Int -> StringSource
Move the screen cursor to the given position.
cursorUp
cursorDown
cursorLeft
cursorRight
savePosition
restorePosition
data Highlight Source
Types of highlighting supported by ANSI codes (and some extra styles).
Constructors
Normal
Bold
Dim
Underscore
Blink
ReverseVideo
Concealed
Foreground Colour
Background Colour
Italic
show/hide Instances
data Colour Source
Colours supported by ANSI codes.
Constructors
Black
Red
Green
Yellow
Blue
Magenta
Cyan
White
show/hide Instances
colourCycle :: [Colour]Source
An infinite supply of colours.
enableScrollRegion :: Int -> Int -> StringSource
Scrolling
scrollUp
scrollDown
lineWrap
Produced by Haddock version 2.4.2