ANSI
Color : Color.Color
Escape
to_str : Escape -> Str
style : Str, List Style -> Str
Add styles to a string
color :
Str,
{
fg ? Color,
bg ? Color
}
-> Str
Add color styles to a string and then resets to default
Input
parse_raw_stdin : List U8 -> Input
input_to_str : Input -> Str
symbol_to_str : Symbol -> Str
upper_to_str : Letter -> Str
lower_to_str : Letter -> Str
ScreenSize
CursorPosition
DrawFn
Pixel
parse_cursor : List U8 -> CursorPosition
update_cursor :
{
cursor : CursorPosition,
screen : ScreenSize
}a,
[
Up,
Down,
Left,
Right
]
->
{
cursor : CursorPosition,
screen : ScreenSize
}a
draw_screen :
{
cursor : CursorPosition,
screen : ScreenSize
}*,
List DrawFn
-> Str
Loop through each pixel in screen and build up a single string to write to stdout