freebsd-dev/stand/lua
Kyle Evans 8d415029e1 stand/lua: Extract menu handlers out into menu.handlers table
This is a bit cleaner than our former method of an if ... else chain of
handlers. Store handlers in the menu.handlers table so that they may be
added to or removed dynamically.

All handlers take the current menu and selected entry as parameters, and
their return value indicates whether the menu processor should continue or
not. An omitted return value or 'true' will indicate that we should
continue, while returning 'false' will indicate that we should exit the
current menu.

The omitted return value behavior is due to continuing the loop being the
more common situation.
2018-02-20 03:40:16 +00:00
..
color.lua stand/lua: Round up some more style.lua(9) concerns 2018-02-19 17:51:33 +00:00
config.lua stand/lua: Add copyright notice in places 2018-02-19 18:11:35 +00:00
core.lua stand/lua: Don't set ACPI off just because we can't detect it. 2018-02-20 02:03:29 +00:00
drawer.lua stand/lua: Re-order locals after copyright notice; require comes first 2018-02-19 17:54:22 +00:00
loader.lua
Makefile
menu.lua stand/lua: Extract menu handlers out into menu.handlers table 2018-02-20 03:40:16 +00:00
password.lua stand/lua: Add copyright notice in places 2018-02-19 18:11:35 +00:00
screen.lua stand/lua: Round up some more style.lua(9) concerns 2018-02-19 17:51:33 +00:00