freebsd-dev/stand/lua
Kyle Evans bb7b569d36 loader: Respect loader_color=YES for serial consoles
It's not uncommon these days for the terminals attached to serial consoles
to support ANSI escape sequences. However, we assume escape sequences may
break some serial consoles and default to not using them when boot_serial or
boot_multicons (or if console contains "comconsole" in the forth loader) for
broader compatibility. We also have loader_color which can be explicitly set
to "NO" to disable the use of ANSI escape sequences.

The problem is that loader_color=YES gets ignored when boot_serial=YES or
boot_multicons=YES (or when console contains "comconsole" in the forth
loader).

To fix, the existing default behavior remains unchanged when loader_color is
unset, loader_color=NO explicitly disables the use of ANSI escape sequences
still, and the change is that loader_color=YES can now be used to explicitly
allow ANSI escapes when a serial console is enabled.

Submitted by:	Ryan Moeller <ryan@ixsystems.com>
Reviewed by:	tsoome (forth), kevans (lua)
MFC after:	1 week
Sponsored by:	iXsystems, Inc. (Ryan)
Differential Revision:	https://reviews.freebsd.org/D21732
2019-09-20 19:43:40 +00:00
..
cli.lua lualoader: Add reload-conf loader command 2019-09-14 03:38:18 +00:00
cli.lua.8 lualoader: Add reload-conf loader command 2019-09-14 03:38:18 +00:00
color.lua loader: Respect loader_color=YES for serial consoles 2019-09-20 19:43:40 +00:00
color.lua.8
config.lua
config.lua.8
core.lua
core.lua.8
drawer.lua
drawer.lua.8
hook.lua
hook.lua.8
loader.lua
logo-beastie.lua
logo-beastiebw.lua
logo-fbsdbw.lua
logo-orb.lua
logo-orbbw.lua
Makefile
menu.lua
menu.lua.8
password.lua
password.lua.8
screen.lua
screen.lua.8