Skip to main content

Module tui

Module tui 

Source
Expand description

TUI rendering layer built on ratatui + crossterm.

Houses:

  • arrow_select: raw-mode arrow-key selector (pre-existing)
  • list_view: Inline Viewport renderer for gw list (new)
  • style: shared ratatui Style palette mirroring crate::console

Simple commands with pure text output continue to use crate::console. ratatui is reserved for commands that need declarative/progressive rendering.

Re-exports§

pub use arrow_select::arrow_select;

Modules§

arrow_select
Arrow-key TUI selector for interactive worktree selection.
list_view
gw list Inline Viewport view.
style
Shared color palette for ratatui-based views.

Functions§

install_panic_hook
Install a panic hook that restores the terminal state before the default panic handler prints. Safe to call once at process start.
stdout_is_tty
Whether stdout is attached to a terminal. Commands should fall back to static rendering when this returns false (pipes, redirects, CI).