Skip to main content

run_tui_ftui

Function run_tui_ftui 

Source
pub fn run_tui_ftui(
    inline_config: Option<InlineTuiConfig>,
    macro_config: MacroConfig,
    data_dir_override: Option<PathBuf>,
) -> Result<()>
Expand description

Run the cass TUI using the ftui Program runtime.

This replaces the manual crossterm event loop in run_tui(). The ftui runtime handles terminal lifecycle (raw mode, alt-screen), event polling, rendering, and cleanup via RAII.

When inline_config is Some, the TUI runs in inline mode: the UI chrome is anchored (top or bottom) within the terminal and scrollback is preserved. When None, fullscreen alt-screen mode is used.

When macro_config has a record_path, events are recorded and saved to the specified file on exit. When play_path is set, events are loaded and replayed.