Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
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 :: String
- clearbol :: String
- clearline :: String
- clearDown :: String
- clearUp :: String
- cls :: String
- goto :: Int -> Int -> String
- cursorUp :: String
- cursorDown :: String
- cursorLeft :: String
- cursorRight :: String
- savePosition :: String
- restorePosition :: String
- 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 #
highlightOff :: [Char] Source #
highlightG :: TerminalType -> [Highlight] -> String -> String Source #
Make the given string appear with all of the listed highlights
cursorDown :: String Source #
cursorLeft :: String Source #
cursorRight :: String Source #
Types of highlighting supported by ANSI codes (and some extra styles).
Instances
Enum Highlight Source # | |
Defined in Language.Haskell.HsColour.ANSI succ :: Highlight -> Highlight # pred :: Highlight -> Highlight # fromEnum :: Highlight -> Int # enumFrom :: Highlight -> [Highlight] # enumFromThen :: Highlight -> Highlight -> [Highlight] # enumFromTo :: Highlight -> Highlight -> [Highlight] # enumFromThenTo :: Highlight -> Highlight -> Highlight -> [Highlight] # | |
Read Highlight Source # | |
Show Highlight Source # | |
Eq Highlight Source # | |
Colours supported by ANSI codes.
colourCycle :: [Colour] Source #
An infinite supply of colours.
scrollDown :: String Source #
data TerminalType Source #
Ansi16Colour |
|
XTerm256Compatible |
|
Instances
Show TerminalType Source # | |
Defined in Language.Haskell.HsColour.Output showsPrec :: Int -> TerminalType -> ShowS # show :: TerminalType -> String # showList :: [TerminalType] -> ShowS # | |
Eq TerminalType Source # | |
Defined in Language.Haskell.HsColour.Output (==) :: TerminalType -> TerminalType -> Bool # (/=) :: TerminalType -> TerminalType -> Bool # | |
Ord TerminalType Source # | |
Defined in Language.Haskell.HsColour.Output compare :: TerminalType -> TerminalType -> Ordering # (<) :: TerminalType -> TerminalType -> Bool # (<=) :: TerminalType -> TerminalType -> Bool # (>) :: TerminalType -> TerminalType -> Bool # (>=) :: TerminalType -> TerminalType -> Bool # max :: TerminalType -> TerminalType -> TerminalType # min :: TerminalType -> TerminalType -> TerminalType # |
Orphan instances
Enum Highlight Source # | |
succ :: Highlight -> Highlight # pred :: Highlight -> Highlight # fromEnum :: Highlight -> Int # enumFrom :: Highlight -> [Highlight] # enumFromThen :: Highlight -> Highlight -> [Highlight] # enumFromTo :: Highlight -> Highlight -> [Highlight] # enumFromThenTo :: Highlight -> Highlight -> Highlight -> [Highlight] # |