APM:Libraries
|
Go to the source code of this file.
Classes | |
class | Menu |
Class defining and handling one menu tree. More... | |
struct | Menu::arg |
struct | Menu::command |
Macros | |
#define | MENU_COMMANDLINE_MAX 32 |
maximum input line length More... | |
#define | MENU_ARGS_MAX 3 |
maximum number of arguments More... | |
#define | MENU_COMMAND_MAX 14 |
maximum size of a command name More... | |
#define | MENU(name, prompt, commands) |
#define | MENU2(name, prompt, commands, preprompt) |
Macros used to define a menu.
The commands argument should be an arary of Menu::command structures, one per command name. The array does not need to be terminated with any special record.
Use name.run() to run the menu.
The MENU2 macro supports the optional pre-prompt printing function.