This library currently supports unix and windows. Mac OS is supported implicitly via posix compatibility. Explicit testing is done one Ubuntu and development is done on Windows and WSL.
(enable-raw)
- Platform specifically enables raw (aka non-canonical) mode.(disable-raw)
- Platform specifically disables raw mode. This currently needs to be called afterenable-raw
to restore the saved terminal state.(with-raw expr*)
- evaluates theexpr
s in the context of raw mode (recommended approach).(move-cursor-x x)
,(move-cursor-y y)
, and(move-cursor x y)
move the cursor relatively byx
,y
, orx
andy
respectively.(set-cursor x y)
sets the cursor position to thex
column andy
row.(show-cursor)
and(hide-cursor)
show and hide the cursor respectively.(set-color-style #:fg-style fg-{color} #:bg-style bg-{color})
sets the color style for the terminal going forward. The foreground and background are optional keywords and colors are exported asfg-color
,bg-color
,fg-bright-color
, andbg-bright-color
.(clear-screen)
clears the screen.
To see more information, go to the issues and projects tabs in the GitHub repository as well as the current statuses.
- Raw mode
- Cursor movement
- Clear the terminal or a single cell
- Foreground and background colors
- Retrieve input in raw mode (see next item)
- Callbacks or polling for input?
- Resize and cursor movement events
- Better documentation
- Better testing, including platform specific testing