Skip to main content

Crate tau_cli_picker

Crate tau_cli_picker 

Source
Expand description

Synchronous, blocking, single-select terminal list picker.

Three entry points are exposed:

  • pick — full convenience. Enables raw mode and writes to stderr. Must not be called from inside a TUI that already owns raw mode.
  • pick_with_writer — enables raw mode but writes the picker frame to a caller-provided writer.
  • pick_with_io — does not manage raw mode. Intended for tests or non-terminal hosts that drive the picker via in-memory streams.

The crate’s terminal-ownership and input contracts are summarized in ARCH-tau-cli-picker.

Structs§

PickerItem
One selectable row shown by the terminal picker.

Enums§

PickerError
Errors returned while rendering or driving an interactive picker.

Functions§

pick
Prompts the user to pick one of items, rendering to stderr.
pick_with_io
Drives the picker against caller-provided byte-stream IO.
pick_with_writer
Like pick, but writes the picker frame to writer.