Function terminal_menu::label [−][src]
pub fn label<T: Into<String>>(text: T) -> TerminalMenuItemExpand description
Make a label terminal-menu item. Can’t be selected. Useful for example as a title, separator, or help text.
Example
use terminal_menu::{menu, label, list};
let menu = menu(vec![
label("This is my menu:"),
list("This is my menu items name", vec!["foo", "bar", "baz"])
]);