Expand description
Application state for the TUI.
The TUI is organised as a small state machine:
- A top-level menu bar: View raises or opens a view, Window arranges the windows.
- The windows live in a list; each owns a view, a multi-pane area managed by the view itself.
- An overlay stack sits on top of the whole lot and intercepts input when non-empty.
- A bottom command line is always visible.
All of this is pure state: no rendering happens in this file. The
draw layer reads from App and renders; the event layer mutates
App via named methods so tests can drive state transitions
without a real terminal.
Structs§
- App
- CliConfig
- The choices given on the command line; config never replaces them.
- CmdLine
- Command-line palette editor state.
- Lookup
- Typed values waiting for the options of their select fields.
- Menu
Entry - A drop-down entry: the intent it applies, its label with the
~X~mark and its key. - Pending
Form - A form that was dispatched and awaits the reply to
request_id.
Enums§
- MenuId
- The menus of the bar, left to right.
Functions§
- parse_
colors - A colour-depth setting:
autois no depth, so the terminal decides.