Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Feb 2018 15:42:20 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329577 - head/stand/lua
Message-ID:  <201802191542.w1JFgKOF072152@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802191542.w1JFgKOF072152>