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;
|
return false;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return (not core.bootserial());
|
return (not core.isSerialBoot());
|
||||||
end
|
end
|
||||||
|
|
||||||
color.disabled = (not color.isEnabled());
|
color.disabled = (not color.isEnabled());
|
||||||
|
@ -191,7 +191,7 @@ function core.boot()
|
|||||||
loader.perform("boot");
|
loader.perform("boot");
|
||||||
end
|
end
|
||||||
|
|
||||||
function core.bootserial()
|
function core.isSerialBoot()
|
||||||
local c = loader.getenv("console");
|
local c = loader.getenv("console");
|
||||||
|
|
||||||
if (c ~= nil) then
|
if (c ~= nil) then
|
||||||
|
@ -338,7 +338,7 @@ function menu.run(m)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function menu.skip()
|
function menu.skip()
|
||||||
if (core.bootserial() )then
|
if (core.isSerialBoot())then
|
||||||
return true;
|
return true;
|
||||||
end
|
end
|
||||||
local c = string.lower(loader.getenv("console") or "");
|
local c = string.lower(loader.getenv("console") or "");
|
||||||
|
@ -43,14 +43,14 @@ function intstring(num)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function screen.clear()
|
function screen.clear()
|
||||||
if (core.bootserial()) then
|
if (core.isSerialBoot()) then
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
loader.printc("\027[H\027[J");
|
loader.printc("\027[H\027[J");
|
||||||
end
|
end
|
||||||
|
|
||||||
function screen.setcursor(x, y)
|
function screen.setcursor(x, y)
|
||||||
if (core.bootserial()) then
|
if (core.isSerialBoot()) then
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -76,7 +76,7 @@ function screen.defcolor()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function screen.defcursor()
|
function screen.defcursor()
|
||||||
if (core.bootserial()) then
|
if (core.isSerialBoot()) then
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
loader.printc("\027[25;0H");
|
loader.printc("\027[25;0H");
|
||||||
|
Loading…
Reference in New Issue
Block a user