Language.Haskell.HsColour.ANSI

| hscolour-1.17: Colourise Haskell code. | Contents | Index
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]
highlightOff :: [Char]
highlight :: [Highlight] -> String -> String
Make the given string appear with all of the listed highlights
cleareol :: [Char]
clearbol :: [Char]
clearline :: [Char]
clearDown :: [Char]
clearUp :: [Char]
cls :: String
Clear the screen.
goto :: Int -> Int -> String
Move the screen cursor to the given position.
cursorUp :: [Char]
cursorDown :: [Char]
cursorLeft :: [Char]
cursorRight :: [Char]
savePosition :: [Char]
restorePosition :: [Char]
data Highlight
Types of highlighting supported by ANSI codes (and some extra styles).
Constructors
Normal |
Bold |
Dim |
Underscore |
Blink |
ReverseVideo |
Concealed |
Foreground Colour |
Background Colour |
Italic |
Instances
Enum Highlight |
Eq Highlight |
Read Highlight |
Show Highlight |
data Colour
Colours supported by ANSI codes.
Constructors
Black |
Red |
Green |
Yellow |
Blue |
Magenta |
Cyan |
White |
Instances
Enum Colour |
Eq Colour |
Read Colour |
Show Colour |
colourCycle :: [Colour]
An infinite supply of colours.
enableScrollRegion :: Int -> Int -> String
Scrolling
scrollUp :: [Char]
scrollDown :: [Char]
lineWrap :: Bool -> [Char]
Produced by Haddock version 2.7.2