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::CliConfig;
pub use app::parse_colors;
pub use keymap::Keys;
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 transport::local::install_panic_hook;
pub use view::Tab;

Modules§

app
Application state for the TUI.
clipboard
Clipboard copy through the terminal’s OSC 52 escape.
command
Palette command builders.
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.
hits
Where the last frame drew everything a click can land on.
keymap
Key-event translation: crossterm [KeyEvent] → Intent, through the preset keymap and the scope chain scopes::chain builds from focus.
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.
scroll
The scroll intents of the report table and the read-only overlays, applied to their window.
tabs
Per-tab state holders and their fetch/paging helpers.
transport
Transport abstraction.
view
View dispatch types and traits.
viewer
The read-only text windows: what they show, how they scroll and what they can do.
widgets
window
Window identity and the views the windows own.