Skip to main content

Module interactive

Module interactive 

Source
Expand description

Shared interactive pickers (type-to-filter FuzzySelect + ANSI theme).

Used by xbp deploy, xbp service, xbp linear, versioning, etc. Cursor / active-row highlight uses a dark indigo 256-color background so selection stays readable against busy multi-column labels.

Functions§

confirm
Confirm with the shared theme.
pad_label
Pad a string to width columns (char count; labels should stay ASCII-friendly).
print_picker_header
Print a short colored picker header above a select prompt.
searchable_multi_select
Searchable multi-select. Returns selected indices (may be empty).
searchable_select
Searchable single-select (type to filter). Returns None if cancelled.
searchable_select_required
Searchable single-select that errors if the user cancels (Esc).
select_one
Non-fuzzy single select (short lists: modes, env, etc.).
xbp_accent_color
Accent color for TUI headers / borders (mid–light indigo).
xbp_selection_style
Ratatui selection style matching xbp_theme (dark indigo + bright text). Used by the full-screen Linear issues browser so pickers and TUI feel identical.
xbp_theme
Rich dialoguer theme used across XBP interactive prompts.