Skip to main content

Crate trem_tui

Crate trem_tui 

Source
Expand description

§trem-tui — terminal user interface

Ratatui-based modal TUI: Sequencer (step grid) and Graph (nested DAG + params); transport tabs SEQ / GRAPH. ? opens the full keymap. Info column (cursor/project/keys + perf at bottom: CPU, RSS, meters). Future editors: docs/tui-editor-roadmap.md. Testing: docs/tui-testing.md (integration tests keyboard_flows, widget_labels; optional scripts/tui-smoke.expect).

The App struct owns all UI state and communicates with the audio engine via a trem_cpal::Bridge.

Re-exports§

pub use app::App;

Modules§

app
Main TUI application: grid, views, transport, and trem_cpal::Bridge integration.
editor
Modal editors — one focused surface at a time (crate::input::Editor).
input
Keyboard routing for modal editors: pattern grid and signal graph. Each editor owns a key family; InputContext disambiguates global chords (Tab, ?, Esc) vs nested-graph exit. Future editors: see repository docs/tui-editor-roadmap.md.
project
Save/load project state to JSON files.
theme
TUI color palette and small ratatui::style::Style builders shared by widgets.
view
Ratatui widget implementations for each TUI pane.