Expand description
Synchronous, blocking, single-select terminal list picker.
Three entry points are exposed:
pick— full convenience. Enables raw mode and writes tostderr. 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§
- Picker
Item - One selectable row shown by the terminal picker.
Enums§
- Picker
Error - Errors returned while rendering or driving an interactive picker.
Functions§
- pick
- Prompts the user to pick one of
items, rendering tostderr. - pick_
with_ io - Drives the picker against caller-provided byte-stream IO.
- pick_
with_ writer - Like
pick, but writes the picker frame towriter.