Function gut_lib::display::select_from_list[][src]

pub fn select_from_list(list: &[String], selected: Option<usize>) -> usize
Expand description

Displays a selection list in the terminal

The function will use the provided String array and list the items in the terminal. The user can then make a selection from the list using the arrow keys. The index of the provided array is returned as the selection.

This function will panic if it fails to write to the terminal.