stand/lua: Remove a magic number/string (not a trivial literal)

We'll arbitrarily use KEYSTR_ for string representations of non-trivial
characters.
This commit is contained in:
kevans 2018-02-16 04:59:21 +00:00
parent ccc3a1adcb
commit b8d4ca5809
2 changed files with 3 additions and 1 deletions

View File

@ -32,6 +32,8 @@ local core = {};
core.KEY_ENTER = 13;
core.KEY_BACKSPACE = 127;
core.KEYSTR_ESCAPE = "\027";
function core.setVerbose(b)
if (b == nil) then
b = not core.verbose;

View File

@ -161,7 +161,7 @@ menu.welcome = {
name = function()
return color.highlight("Esc").."ape to loader prompt";
end,
alias = {"\027"}
alias = {core.KEYSTR_ESCAPE}
},
-- reboot