Skip to content

Playbooks for g

Story-style workflows—solo, team, and on-call. Jump into the full Use cases page anytime.

ui::interactive

Mode 3 — full-screen ratatui TUI prompts.

auto-generated This page is built from //! comments in the Rust source. Edit the source and run npm run docs:extract to update it.

Mode 3 — full-screen ratatui TUI prompts.

This folder is the reusable interactive kit. The heavy lifting lives in:

  • [runtime] — the enter/draw/key/restore event loop ([runtime::run]) and the TTY guards.
  • [layout] — shared vertical zone splits.
  • [widgets] — themed header, help bar, cursor list, input line, paginator, and the composed [widgets::scroll_list].

Each public prompt below is now just state + a draw call + a key match, so adding a new screen is a few lines and the business logic stays obvious.

Every entry point first honours inline mode ([runtime::prefers_inline]) and the non-TTY guard ([runtime::is_interactive]), falling back to a sensible default so scripts never block.

Source: src/ui/interactive/mod.rs