Skip to main content

Module app

Module app 

Source
Expand description

The TUI state and its Screen implementation.

App owns the calculator service and the view-only state, translates keys into service calls through crate::keymap and renders through the shared appframe. Modals are blocking (ratada::modal), so they dim the live view behind them instead of a black screen.

The type is not split, only its impl is: this module holds the state, the construction and the small state helpers every handler leans on, while the handlers themselves live in sibling child modules by responsibility. Private fields stay reachable there because the children sit below this module.

Structsยง

App
The whole TUI state: the calculator service plus view-only fields.