Expand description
Display simple menus on the terminal! Examples
Structs§
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.