svn commit: r329577 - head/stand/lua
Kyle Evans
kevans at FreeBSD.org
Mon Feb 19 15:42:21 UTC 2018
Author: kevans
Date: Mon Feb 19 15:42:20 2018
New Revision: 329577
URL: https://svnweb.freebsd.org/changeset/base/329577
Log:
stand/lua: Rename bootserial for clarity
Modified:
head/stand/lua/color.lua
head/stand/lua/core.lua
head/stand/lua/menu.lua
head/stand/lua/screen.lua
Modified: head/stand/lua/color.lua
==============================================================================
--- head/stand/lua/color.lua Mon Feb 19 14:21:56 2018 (r329576)
+++ head/stand/lua/color.lua Mon Feb 19 15:42:20 2018 (r329577)
@@ -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());
Modified: head/stand/lua/core.lua
==============================================================================
--- head/stand/lua/core.lua Mon Feb 19 14:21:56 2018 (r329576)
+++ head/stand/lua/core.lua Mon Feb 19 15:42:20 2018 (r329577)
@@ -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
Modified: head/stand/lua/menu.lua
==============================================================================
--- head/stand/lua/menu.lua Mon Feb 19 14:21:56 2018 (r329576)
+++ head/stand/lua/menu.lua Mon Feb 19 15:42:20 2018 (r329577)
@@ -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 "");
Modified: head/stand/lua/screen.lua
==============================================================================
--- head/stand/lua/screen.lua Mon Feb 19 14:21:56 2018 (r329576)
+++ head/stand/lua/screen.lua Mon Feb 19 15:42:20 2018 (r329577)
@@ -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");
More information about the svn-src-all
mailing list