Skip to main content

Crate tui

Crate tui 

Source
Expand description

tui library. Exposes the application state, event loop, and transport abstraction so downstream binaries (the local nomisync-tui binary and the SSH daemon) can share one implementation.

Re-exports§

pub use app::App;
pub use app::Tab;
pub use runtime::run_loop;
pub use transport::LocalTransport;
pub use transport::RawEvent;
pub use transport::Transport;
pub use widgets::EditMode;

Modules§

app
Application state for the TUI.
chart
Chart renderer selector.
draw
Ratatui rendering. The draw layer is a pure function of crate::app::App: take a Frame and an App, render the current visual state. No I/O of its own; I/O is the transport’s job.
event
Key-event routing.
keymap
Key-event translation: crossterm [KeyEvent] → Intent.
modal
Modal overlay stack.
palette
:-driven command palette. Parses a typed command string into (path, args), looks the path up in the shared cli_core command tree, and returns the runnable leaf the event layer should execute.
runtime
Transport-agnostic event loop.
tabs
Per-tab state holders. Kept intentionally thin right now — the TUI scaffolding ships with placeholder views for each tab and the individual tab implementations grow in follow-up work as the server commands needed by each view get promoted out of the web crate.
transport
Transport abstraction.
widgets