hscolour-1.16: Colourise Haskell code.Source codeContentsIndex
Language.Haskell.HsColour.ANSI
Description
Partially taken from Hugs AnsiScreen.hs library:
Synopsis
highlightOn :: [Highlight] -> [Char]
highlightOff :: [Char]
highlight :: [Highlight] -> String -> String
cleareol :: [Char]
clearbol :: [Char]
clearline :: [Char]
clearDown :: [Char]
clearUp :: [Char]
cls :: String
goto :: Int -> Int -> String
cursorUp :: [Char]
cursorDown :: [Char]
cursorLeft :: [Char]
cursorRight :: [Char]
savePosition :: [Char]
restorePosition :: [Char]
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 :: [Char]
scrollDown :: [Char]
lineWrap :: Bool -> [Char]
Documentation
highlightOn :: [Highlight] -> [Char]Source
highlightOff :: [Char]Source
highlight :: [Highlight] -> String -> StringSource
Make the given string appear with all of the listed highlights
cleareol :: [Char]Source
clearbol :: [Char]Source
clearline :: [Char]Source
clearDown :: [Char]Source
clearUp :: [Char]Source
cls :: StringSource
Clear the screen.
goto :: Int -> Int -> StringSource
Move the screen cursor to the given position.
cursorUp :: [Char]Source
cursorDown :: [Char]Source
cursorLeft :: [Char]Source
cursorRight :: [Char]Source
savePosition :: [Char]Source
restorePosition :: [Char]Source
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
data Colour Source
Colours supported by ANSI codes.
Constructors
Black
Red
Green
Yellow
Blue
Magenta
Cyan
White
colourCycle :: [Colour]Source
An infinite supply of colours.
enableScrollRegion :: Int -> Int -> StringSource
Scrolling
scrollUp :: [Char]Source
scrollDown :: [Char]Source
lineWrap :: Bool -> [Char]Source
Produced by Haddock version 2.6.0