stand/lua: Rename bootserial for clarity
This commit is contained in:
parent
fa4a2394a7
commit
b140d14b02
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329577
@ -50,7 +50,7 @@ function color.isEnabled()
|
||||
return false;
|
||||
end
|
||||
end
|
||||
return (not core.bootserial());
|
||||
return (not core.isSerialBoot());
|
||||
end
|
||||
|
||||
color.disabled = (not color.isEnabled());
|
||||
|
@ -191,7 +191,7 @@ function core.boot()
|
||||
loader.perform("boot");
|
||||
end
|
||||
|
||||
function core.bootserial()
|
||||
function core.isSerialBoot()
|
||||
local c = loader.getenv("console");
|
||||
|
||||
if (c ~= nil) then
|
||||
|
@ -338,7 +338,7 @@ function menu.run(m)
|
||||
end
|
||||
|
||||
function menu.skip()
|
||||
if (core.bootserial() )then
|
||||
if (core.isSerialBoot())then
|
||||
return true;
|
||||
end
|
||||
local c = string.lower(loader.getenv("console") or "");
|
||||
|
@ -43,14 +43,14 @@ function intstring(num)
|
||||
end
|
||||
|
||||
function screen.clear()
|
||||
if (core.bootserial()) then
|
||||
if (core.isSerialBoot()) then
|
||||
return;
|
||||
end
|
||||
loader.printc("\027[H\027[J");
|
||||
end
|
||||
|
||||
function screen.setcursor(x, y)
|
||||
if (core.bootserial()) then
|
||||
if (core.isSerialBoot()) then
|
||||
return;
|
||||
end
|
||||
|
||||
@ -76,7 +76,7 @@ function screen.defcolor()
|
||||
end
|
||||
|
||||
function screen.defcursor()
|
||||
if (core.bootserial()) then
|
||||
if (core.isSerialBoot()) then
|
||||
return;
|
||||
end
|
||||
loader.printc("\027[25;0H");
|
||||
|
Loading…
Reference in New Issue
Block a user