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:
Kyle Evans 2018-02-16 04:59:21 +00:00
parent e908401285
commit 39006570a4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329359
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