prompt_index

Function prompt_index 

Source
fn prompt_index(count: usize) -> Result<Option<usize>>
Expand description

Read a 1-based choice from the terminal. None means the user declined (empty line or EOF).