Skip to main content

select

Function select 

Source
pub fn select(
    prompt: &str,
    items: &[SelectItem],
    initial: usize,
) -> Option<String>
Expand description

Show an interactive, arrow-key-navigable menu and return the chosen value.

Controls: ↑ / k — move up ↓ / j — move down 1–9 — jump to item N Enter — confirm selection Esc / q — cancel (returns None)