Skip to main content

Crate horto_os_ui_tui

Crate horto_os_ui_tui 

Source
Expand description

Horto OS UI TUI (horto-os-ui-tui): Ratatui wizard over the shared engine.

Tabs: Setup, Overview, SSH, CLI, API, MCP, Reboot, Logs. With --remote, probes and installs run over SSH; secrets use askpass, not leave-alt-screen suspend. Confirm and text prompts are Ratatui modals.

Modulesยง

app ๐Ÿ”’
TUI application state and setup/apply actions.
draw ๐Ÿ”’
Ratatui draw helpers: layout, footer, panels, help overlay.
event ๐Ÿ”’
Keyboard handling for the TUI event loop.
probe_job ๐Ÿ”’
Background remote surface probe for the TUI event loop.
prompt ๐Ÿ”’
Ratatui modals: y/N confirm, free-text, and masked secret input.
tabs ๐Ÿ”’
TUI tab order and colored surface panels.

Structsยง

TerminalGuard ๐Ÿ”’
Restores the terminal on drop (normal exit, ?, or unwind).

Staticsยง

STOP ๐Ÿ”’
Set by SIGINT/SIGTERM so the loop can restore the tty before exit.

Functionsยง

hard_reset_tty ๐Ÿ”’
Reset SGR, show cursor, leave alt buffer, clear leftover TUI cells.
install_panic_hook ๐Ÿ”’
install_signal_handlers ๐Ÿ”’
main ๐Ÿ”’
restore_terminal ๐Ÿ”’
run_app ๐Ÿ”’