ui/terminal library

Classes

KeyEvent
One key press, or a run of typed or pasted text.
KeyParser
Turns raw terminal input into KeyEvents.
LiveRegion
The lines at the bottom of the screen that are redrawn in place: the spinner, the input box, menus. Everything above it is permanent output.
Terminal
The terminal Lea Code runs in: raw keyboard input, the screen size, and output.

Enums

Key

Typedefs

KeyHandler = bool Function(KeyEvent event)
A key handler returns true when it used the key. Keys nobody uses are kept as type-ahead for the next handler.