termenu 2.3.3

A fzf-like library for terminal applications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
fn main() {
    let mut menu = termenu::Menu::new().unwrap();
    let mut item_list = Vec::new();
    for i in 1..=10 {
        item_list.push(termenu::Item::new(format!("{i}th item").as_str(), i));
    }
    let selection = menu
        .set_title("test selection:")
        .add_list(item_list)
        .select()
        .unwrap();
    if let Some(selection) = selection {
        println!("You selected: {selection}");
    }
}