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:
parent
e908401285
commit
39006570a4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329359
@ -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;
|
||||
|
@ -161,7 +161,7 @@ menu.welcome = {
|
||||
name = function()
|
||||
return color.highlight("Esc").."ape to loader prompt";
|
||||
end,
|
||||
alias = {"\027"}
|
||||
alias = {core.KEYSTR_ESCAPE}
|
||||
},
|
||||
|
||||
-- reboot
|
||||
|
Loading…
Reference in New Issue
Block a user