diff --git a/stand/lua/color.lua b/stand/lua/color.lua index 0e11e99378e6..a035e510f171 100644 --- a/stand/lua/color.lua +++ b/stand/lua/color.lua @@ -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()); diff --git a/stand/lua/core.lua b/stand/lua/core.lua index 1c00403ad97e..879a6ac342d9 100644 --- a/stand/lua/core.lua +++ b/stand/lua/core.lua @@ -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 diff --git a/stand/lua/menu.lua b/stand/lua/menu.lua index 31415b8a68a0..8b02b5a9b74e 100644 --- a/stand/lua/menu.lua +++ b/stand/lua/menu.lua @@ -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 ""); diff --git a/stand/lua/screen.lua b/stand/lua/screen.lua index d34f8ec344e6..5001a9b7865e 100644 --- a/stand/lua/screen.lua +++ b/stand/lua/screen.lua @@ -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");