System.Console.ANSI

# Basic data types

data Color

data ColorIntensity

data ConsoleLayer

data BlinkSpeed

data Underlining

data ConsoleIntensity

data SGR

# Cursor movement by character

cursorUp

cursorDown

cursorForward

cursorBackward

hCursorUp

hCursorDown

hCursorForward

hCursorBackward

cursorUpCode

cursorDownCode

cursorForwardCode

cursorBackwardCode

# Cursor movement by line

cursorUpLine

cursorDownLine

hCursorUpLine

hCursorDownLine

cursorUpLineCode

cursorDownLineCode

# Directly changing cursor position

setCursorColumn

hSetCursorColumn

setCursorColumnCode

setCursorPosition

hSetCursorPosition

setCursorPositionCode

# Clearing parts of the screen

clearFromCursorToScreenEnd

clearFromCursorToScreenBeginning

clearScreen

hClearFromCursorToScreenEnd

hClearFromCursorToScreenBeginning

hClearScreen

clearFromCursorToScreenEndCode

clearFromCursorToScreenBeginningCode

clearScreenCode

clearFromCursorToLineEnd

clearFromCursorToLineBeginning

clearLine

hClearFromCursorToLineEnd

hClearFromCursorToLineBeginning

hClearLine

clearFromCursorToLineEndCode

clearFromCursorToLineBeginningCode

clearLineCode

# Scrolling the screen

scrollPageUp

scrollPageDown

hScrollPageUp

hScrollPageDown

scrollPageUpCode

scrollPageDownCode

# Select Graphic Rendition mode: colors and other whizzy stuff

setSGR

hSetSGR

setSGRCode

# Cursor visibilty changes

hideCursor

showCursor

hHideCursor

hShowCursor

hideCursorCode

showCursorCode

# Changing the title

setTitle

hSetTitle

setTitleCode

# Checking if handle supports ANSI

hSupportsANSI