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 back 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.

Returns true if the menu is inactive and has exited.

Make a label terminal-menu item. Can’t 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. Only the selected value is visible.

Create a terminal-menu. See the examples for more.

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

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

Activate the menu and wait for it to exit.

Make a terminal-menu item from which you can select a value from a selection. All values are dispalyed all the time.

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

Make a terminal-menu submenu item. It is basically a menu inside a menu.

Wait for menu to exit.

Type Definitions