Date: Sun, 22 Sep 2019 17:39:20 +0000 (UTC) From: Toomas Soome <tsoome@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r352601 - head/stand/lua Message-ID: <201909221739.x8MHdK6k084768@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tsoome Date: Sun Sep 22 17:39:20 2019 New Revision: 352601 URL: https://svnweb.freebsd.org/changeset/base/352601 Log: loader_lua: lua color changes should end with reset The color change should have reset sequence, not switch to white. Modified: head/stand/lua/color.lua head/stand/lua/logo-beastie.lua head/stand/lua/logo-orb.lua head/stand/lua/menu.lua Modified: head/stand/lua/color.lua ============================================================================== --- head/stand/lua/color.lua Sun Sep 22 17:31:27 2019 (r352600) +++ head/stand/lua/color.lua Sun Sep 22 17:39:20 2019 (r352601) @@ -42,7 +42,7 @@ color.MAGENTA = 5 color.CYAN = 6 color.WHITE = 7 -color.DEFAULT = 0 +color.DEFAULT = 9 color.BRIGHT = 1 color.DIM = 2 @@ -67,7 +67,7 @@ function color.resetfg() if color.disabled then return '' end - return color.escapefg(color.WHITE) + return color.escapefg(color.DEFAULT) end function color.escapebg(color_value) @@ -81,7 +81,7 @@ function color.resetbg() if color.disabled then return '' end - return color.escapebg(color.BLACK) + return color.escapebg(color.DEFAULT) end function color.escape(fg_color, bg_color, attribute) @@ -101,7 +101,7 @@ function color.default() if color.disabled then return "" end - return color.escape(color.WHITE, color.BLACK, color.DEFAULT) + return color.escape(color.DEFAULT, color.DEFAULT) end function color.highlight(str) Modified: head/stand/lua/logo-beastie.lua ============================================================================== --- head/stand/lua/logo-beastie.lua Sun Sep 22 17:31:27 2019 (r352600) +++ head/stand/lua/logo-beastie.lua Sun Sep 22 17:39:20 2019 (r352601) @@ -48,7 +48,7 @@ local beastie_color = { " \\ / /\\", " \027[36m______\027[31m( (_ / \\______/", " \027[36m,' ,-----' |", -" `--{__________)\027[37m" +" `--{__________)\027[m" } drawer.addLogo("beastie", { Modified: head/stand/lua/logo-orb.lua ============================================================================== --- head/stand/lua/logo-orb.lua Sun Sep 22 17:31:27 2019 (r352600) +++ head/stand/lua/logo-orb.lua Sun Sep 22 17:39:20 2019 (r352601) @@ -44,7 +44,7 @@ local orb_color = { " -- \027[31;1m-.\027[31m", " `:` \027[31;1m`:`", " \027[31;1m.-- `--.", -" .---.....----.\027[37m" +" .---.....----.\027[m" } drawer.addLogo("orb", { Modified: head/stand/lua/menu.lua ============================================================================== --- head/stand/lua/menu.lua Sun Sep 22 17:31:27 2019 (r352600) +++ head/stand/lua/menu.lua Sun Sep 22 17:39:20 2019 (r352601) @@ -47,10 +47,10 @@ local return_menu_entry = { local function OnOff(str, value) if value then return str .. color.escapefg(color.GREEN) .. "On" .. - color.escapefg(color.WHITE) + color.resetfg() else return str .. color.escapefg(color.RED) .. "off" .. - color.escapefg(color.WHITE) + color.resetfg() end end
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909221739.x8MHdK6k084768>