| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell98 |
Language.Haskell.HsColour.ANSI
Contents
Description
Partially taken from Hugs AnsiScreen.hs library:
Synopsis
- highlightOnG :: TerminalType -> [Highlight] -> String
- highlightOn :: [Highlight] -> String
- highlightOff :: [Char]
- highlightG :: TerminalType -> [Highlight] -> String -> String
- 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
- colourCycle :: [Colour]
- enableScrollRegion :: Int -> Int -> String
- scrollUp :: String
- scrollDown :: String
- lineWrap :: Bool -> [Char]
- data TerminalType
Documentation
highlightOnG :: TerminalType -> [Highlight] -> String Source #
highlightOn :: [Highlight] -> String Source #
highlightOff :: [Char] Source #
highlightG :: TerminalType -> [Highlight] -> String -> String Source #
Make the given string appear with all of the listed highlights
cursorDown :: [Char] Source #
cursorLeft :: [Char] Source #
cursorRight :: [Char] Source #
savePosition :: [Char] Source #
restorePosition :: [Char] 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 |
Instances
| Enum Highlight | |
Defined in Language.Haskell.HsColour.ANSI | |
| Eq Highlight Source # | |
| Read Highlight Source # | |
Defined in Language.Haskell.HsColour.ColourHighlight | |
| Show Highlight Source # | |
Colours supported by ANSI codes.
colourCycle :: [Colour] Source #
An infinite supply of colours.
enableScrollRegion :: Int -> Int -> String Source #
Scrolling
scrollDown :: String Source #
data TerminalType Source #
Constructors
| Ansi16Colour |
|
| XTerm256Compatible |
|
Instances
| Eq TerminalType Source # | |
Defined in Language.Haskell.HsColour.Output | |
| Ord TerminalType Source # | |
Defined in Language.Haskell.HsColour.Output Methods compare :: TerminalType -> TerminalType -> Ordering (<) :: TerminalType -> TerminalType -> Bool (<=) :: TerminalType -> TerminalType -> Bool (>) :: TerminalType -> TerminalType -> Bool (>=) :: TerminalType -> TerminalType -> Bool max :: TerminalType -> TerminalType -> TerminalType min :: TerminalType -> TerminalType -> TerminalType | |
| Show TerminalType Source # | |
Defined in Language.Haskell.HsColour.Output Methods showsPrec :: Int -> TerminalType -> ShowS show :: TerminalType -> String showList :: [TerminalType] -> ShowS | |