Crate terminal_menu

Source
Expand description

Display simple menus on the terminal! Examples

Structs§

TerminalMenuItem
TerminalMenuStruct

Functions§

activate
Activate (open) the menu. Menu will deactivate when deactivated manually or button items are pressed.
back_button
Make a back button terminal-menu item. Returns to the previous menu (or exits when there is none) when pressed.
button
Make a button terminal-menu item. Exits the menu with all the parent menus when pressed.
has_exited
Returns true if the menu has exited.
label
Make a label terminal-menu item. Can’t be selected. Useful for example as a title, separator, or help text.
list
Make a terminal-menu item from which you can select a value from a selection. Only the selected value is visible.
menu
Create a terminal-menu. See the examples for more.
mut_menu
Get a mutable instance of the menu. Works only if has_exited(&menu) is true.
numeric
Make a terminal-menu item from which you can select a number between specified bounds.
run
Activate the menu and wait for it to exit.
scroll
Make a terminal-menu item from which you can select a value from a selection. All values are dispalyed all the time.
string
Make a terminal-menu item which you can enter a string of characters to. Empty strings may be enabled with a flag.
submenu
Make a terminal-menu submenu item. It is basically a menu inside a menu.
wait_for_exit
Wait for menu to exit.

Type Aliases§

TerminalMenu