Skip to main content

Module termination

Module termination 

Source
Expand description

Shared termination/intent model for mecha10 dev’s interactive TUI screens.

Gives every screen a consistent answer for “what does this key mean” and installs a single shared Ctrl+C handler.

Enums§

ScreenOutcome
TerminationIntent

Functions§

classify_key
Classify a key event into a TerminationIntent, if it is one.
install_quit_signal
Install a single process-wide Ctrl+C handler and return the shared “keep running” flag it clears on signal. Safe to call more than once; only the first call registers the handler.