.. index:: menu (command) .. _command_menu: menu - create and display menus =============================== Synopsis ^^^^^^^^ Manage Menu: Options ^^^^^^^ -m menu -l list -s show -e menu entry -a add -r remove -S select -A auto select delay -d auto select description Description ^^^^^^^^^^^ Advanced menu management: Show menu: menu -s -m MENU [-A delay] [-d auto_display] List menu: menu -l Add a menu: menu -a -m NAME -d DESC Remove a menu: menu -r -m NAME Add an entry: (-R for do no exit the menu after executing the command) (-b for box style 1 for selected) (and optional -c for the command to run when we change the state) menu -e -a -m MENU -c COMMAND [-R] [-b 0|1] -d DESC Add a submenu entry: (-R is not needed) (-b for box style 1 for selected) (and -c is not needed) menu -e -a -m MENU -u submenu -d [-b 0|1] DESC Remove an entry: menu -e -r -m NAME -n ENTRY Select an entry: menu -m -S -n ENTRY List menu: menu -e -l [menu] Menu examples: menu -a -m boot -d \"Boot Menu\" menu -e -a -m boot -c boot -d \"Boot\" menu -e -a -m boot -c reset -d \"Reset\" Menu example: menu -s -m boot .. generated from: /ptx/work/WORK_EIHEI/sha/backup/barebox/barebox-maintainer-utils/barebox/commands/menu.c .. command function: do_menu