Crate terminal_menu[][src]

Expand description

Display simple menus on the terminal! Examples

Structs

Functions

Activate (open) the menu. Menu will deactivate when deactivated manually or button items are pressed.

Make a button terminal-menu item. Returns to the previous menu (or exits when there is none) when pressed.

Make a button terminal-menu item. Exits the menu with all the parent menus when pressed.

Deactivate (exit) a menu manually.

Get a mutable instance of the menu. Works only if has_exited(&menu) is true.

Shortcut to getting the specified submenu.

Shortcut to see if a menu has exited or never been activated.

Make a label terminal-menu item. Can not be selected. Useful for example as a title, separator, or help text.

Make a terminal-menu item from which you can select a value from a selection.

Create a new terminal-menu.

Make a terminal-menu item from which you can select a number between specified bounds.

Shortcut to getting the value of the specified numeric item.

Activate the menu and wait for it to deactivate (exit).

Make a terminal-menu item from which you can select a value from a selection.

Shortcut to getting the index of the selected item.

Shortcut to getting the selected item as a String.

Shortcut to getting the value of the specified selection item as a String.

Make a terminal-menu submenu item.

Try to activate (open) the menu as the fancy variant. returns Err(()) when the terminal does not support it. Menu will deactivate when deactivated manually or button items are pressed.

Try to activate (open) the menu as the fancy variant and wait for it to deactivate (exit). returns Err(()) when the terminal does not support it. Menu will deactivate when deactivated manually or button items are pressed.

Wait for menu to deactivate (exit).