Skip to main content

Crate rtcom_tui

Crate rtcom_tui 

Source
Expand description

Terminal UI for rtcom.

Hosts the ratatui render loop, the SerialPane (vt100-backed terminal emulator), and the modal configuration menu. Subscribes to rtcom_core::EventBus for serial data + system events; publishes back TxBytes, Command, MenuOpened/Closed, etc.

Re-exports§

pub use app::TuiApp;
pub use input::Dispatch;
pub use menu::PlaceholderDialog;
pub use menu::RootMenu;
pub use menu::SerialPortSetupDialog;
pub use modal::Dialog;
pub use modal::DialogAction;
pub use modal::DialogOutcome;
pub use modal::ModalStack;
pub use run::run;
pub use run::summarise;
pub use serial_pane::SerialPane;

Modules§

app
Top-level TUI application object.
input
Key-event to byte-stream conversion.
layout
Top-level chrome layout for the TUI main screen.
menu
Configuration-menu dialogs.
modal
Modal dialog trait + a stack that routes input to the topmost dialog. T10 defines the abstraction; T11+ wire actual dialogs (root menu, serial port setup, …) on top of it.
profile_bridge
Conversion helpers between rtcom_config’s string-based Profile and rtcom_core’s typed SerialConfig / LineEndingConfig.
run
Event loop driver for the rtcom TUI.
serial_pane
Serial data pane backed by a vt100 terminal emulator.
terminal
Terminal mode guards.
toast
Timed toast notifications for the TUI.