Lines Matching defs:menu
37 local menu = {}
42 name = "Back to main menu" .. color.highlight(" [Backspace]"),
69 menu.handlers = {
70 -- Menu handlers take the current menu and selected entry as parameters,
94 menu.process(entry.submenu)
104 -- loader menu tree is rooted at menu.welcome
106 menu.boot_environments = {
108 -- return to welcome menu
157 menu.boot_options = {
159 -- return to welcome menu
220 menu.welcome = {
222 local menu_entries = menu.welcome.all_entries
227 -- Swap the first two menu items on single user boot.
276 -- Not a standard menu entry function!
290 -- Not a standard menu entry function!
360 submenu = menu.boot_options,
396 submenu = menu.boot_environments,
423 menu.default = menu.welcome
426 -- the local alias_table in menu.process.
427 menu.current_alias_table = {}
429 function menu.draw(menudef)
432 menu.current_alias_table = drawer.drawscreen(menudef)
439 function menu.process(menudef, keypress)
443 menu.draw(menudef)
452 menudef ~= menu.default then
456 -- Should not return. If it does, escape menu handling
464 for k, v in pairs(menu.current_alias_table) do
473 local handler = menu.handlers[sel_entry.entry_type]
476 -- need to exit this menu. An omitted or true
483 menu.draw(menudef)
488 function menu.run()
503 menu.draw(menu.default)
506 autoboot_key = menu.autoboot(delay)
516 menu.process(menu.default, autoboot_key)
520 print("Exiting menu!")
523 function menu.autoboot(delay)
560 function cli.menu()
561 menu.run()
564 return menu