pub fn string<T: Into<String>, T2: Into<String>>(
    name: T,
    default: T2,
    allow_empty: bool
) -> TerminalMenuItem
Expand description

Make a terminal-menu item which you can enter a string of characters to. Empty strings may be enabled with a flag.

Example

use terminal_menu::{menu, string, run, mut_menu};
let menu = menu(vec![
    string("My Strings Name", "Default Value", /* allow empty string */ false)
]);
run(&menu);
println!("My Strings Value: {}", mut_menu(&menu).selection_value("My Strings Name"));