Library for formatted output on terminals
Information on ANSI Codes can be found at http://en.wikipedia.org/wiki/ANSIescapecode
Author: Sebastian Fischer, Bjoern Peemoeller
Version: November 2020
cursorPos
:: Int -> Int -> String move cursor to position |
cursorHome
:: String move cursor to home position |
cursorUp
:: Int -> String move cursor n lines up |
cursorDown
:: Int -> String move cursor n lines down |
cursorFwd
:: Int -> String move cursor n columns forward |
cursorBack
:: Int -> String move cursor n columns backward |
saveCursor
:: String save cursor position |
restoreCursor
:: String restore saved cursor position |
clear
:: String clear screen |
eraseLine
:: String erase line |
normal
:: String -> String Reset formatting to normal formatting |
bold
:: String -> String Bold text |
faint
:: String -> String Faint text |
italic
:: String -> String Italic text |
underline
:: String -> String Underlined text |
blinkSlow
:: String -> String Slowly blinking text |
blinkRapid
:: String -> String rapidly blinking text |
inverse
:: String -> String Inverse colors |
concealed
:: String -> String Concealed (invisible) text |
crossedout
:: String -> String Crossed out text |
black
:: String -> String Black foreground color |
red
:: String -> String Red foreground color |
green
:: String -> String Green foreground color |
yellow
:: String -> String Yellow foreground color |
blue
:: String -> String Blue foreground color |
magenta
:: String -> String Magenta foreground color |
cyan
:: String -> String Cyan foreground color |
white
:: String -> String White foreground color |
fgDefault
:: String -> String Default foreground color |
bgBlack
:: String -> String Black background color |
bgRed
:: String -> String Red background color |
bgGreen
:: String -> String Green background color |
bgYellow
:: String -> String Yellow background color |
bgBlue
:: String -> String Blue background color |
bgMagenta
:: String -> String Magenta background color |
bgCyan
:: String -> String Cyan background color |
bgWhite
:: String -> String White background color |
bgDefault
:: String -> String Default background color |
move cursor to position |
move cursor to home position
|
move cursor n lines up |
move cursor n lines down |
move cursor n columns forward |
move cursor n columns backward |
save cursor position
|
restore saved cursor position
|
clear screen
|
erase line
|
Reset formatting to normal formatting |
Bold text |
Faint text |
Italic text |
Underlined text |
Slowly blinking text |
rapidly blinking text |
Inverse colors |
Concealed (invisible) text |
Crossed out text |
Black foreground color |
Red foreground color |
Green foreground color |
Yellow foreground color |
Blue foreground color |
Magenta foreground color |
Cyan foreground color |
White foreground color |
Default foreground color |
Black background color |
Red background color |
Green background color |
Yellow background color |
Blue background color |
Magenta background color |
Cyan background color |
White background color |
Default background color |