stand/lua: Rename bootserial for clarity

This commit is contained in:
Kyle Evans 2018-02-19 15:42:20 +00:00
parent fa4a2394a7
commit b140d14b02
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329577
4 changed files with 6 additions and 6 deletions

View File

@ -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());

View File

@ -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

View File

@ -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 "");

View File

@ -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");