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 runtime::run_loop;
pub use tabs::nms_eval::ConsoleEval;
pub use transport::LocalTransport;
pub use transport::RawEvent;
pub use transport::Transport;
pub use view::Tab;
pub use widgets::EditMode;

Modules§

app
Application state for the TUI.
chart
Chart renderer selector.
command
Palette command form builder.
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.
focus
Focus-target resolver.
form
Generic input form used by all overlay modals that collect user input.
keymap
Key-event translation: crossterm [KeyEvent] → Intent.
modal
Modal overlay types.
overlay
Overlay stack — LIFO focus layer rendered on top of the main view.
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.
pane
Focusable sub-pane model.
route
Eval reply routing types.
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.
view
View dispatch types and traits.
widgets