Lines Matching defs:menu
39 local menu = {}
44 name = "Back to main menu" .. color.highlight(" [Backspace]"),
64 menu.handlers = {
65 -- Menu handlers take the current menu and selected entry as parameters,
89 menu.process(entry.submenu)
99 -- loader menu tree is rooted at menu.welcome
101 menu.boot_environments = {
103 -- return to welcome menu
149 menu.boot_options = {
151 -- return to welcome menu
212 menu.welcome = {
214 local menu_entries = menu.welcome.all_entries
219 -- Swap the first two menu items on single user boot.
263 -- Not a standard menu entry function!
275 -- Not a standard menu entry function!
345 submenu = menu.boot_options,
355 submenu = menu.boot_environments,
376 menu.default = menu.welcome
379 -- the local alias_table in menu.process.
380 menu.current_alias_table = {}
382 function menu.draw(menudef)
385 menu.current_alias_table = drawer.drawscreen(menudef)
392 function menu.process(menudef, keypress)
396 menu.draw(menudef)
405 menudef ~= menu.default then
409 -- Should not return. If it does, escape menu handling
417 for k, v in pairs(menu.current_alias_table) do
426 local handler = menu.handlers[sel_entry.entry_type]
429 -- need to exit this menu. An omitted or true
436 menu.draw(menudef)
441 function menu.run()
456 menu.draw(menu.default)
459 autoboot_key = menu.autoboot(delay)
469 menu.process(menu.default, autoboot_key)
473 print("Exiting menu!")
476 function menu.autoboot(delay)
514 function cli.menu()
515 menu.run()
518 return menu