freebsd-skq/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 Add color.lua(8), password.lua(8), and screen.lua(8) 2018-08-20 02:37:24 +00:00
config.lua lualoader: Fix up some luacheck concerns 2019-03-26 02:35:58 +00:00
config.lua.8 Add config.lua(8) to the tree 2018-08-19 15:07:39 +00:00
core.lua lualoader: Revert to ASCII menu frame for serial console 2019-09-10 21:30:38 +00:00
core.lua.8 Eliminate zfsloader man page. 2018-07-20 05:17:49 +00:00
drawer.lua lualoader: Revert to ASCII menu frame for serial console 2019-09-10 21:30:38 +00:00
drawer.lua.8 Add drawer.lua(8) 2018-08-20 02:08:39 +00:00
hook.lua Remove "All Rights Reserved" on files that I hold sole copyright on 2018-05-09 16:44:19 +00:00
hook.lua.8 lualoader: Add hook.lua(8) to tree 2018-06-09 14:26:30 +00:00
loader.lua lualoader: fix color usage 2018-08-30 13:29:32 +00:00
logo-beastie.lua Remove "All Rights Reserved" on files that I hold sole copyright on 2018-05-09 16:44:19 +00:00
logo-beastiebw.lua Remove "All Rights Reserved" on files that I hold sole copyright on 2018-05-09 16:44:19 +00:00
logo-fbsdbw.lua Remove "All Rights Reserved" on files that I hold sole copyright on 2018-05-09 16:44:19 +00:00
logo-orb.lua Remove "All Rights Reserved" on files that I hold sole copyright on 2018-05-09 16:44:19 +00:00
logo-orbbw.lua Remove "All Rights Reserved" on files that I hold sole copyright on 2018-05-09 16:44:19 +00:00
Makefile lualoader: Install all manpages 2018-08-20 02:40:10 +00:00
menu.lua lualoader: Fix up some luacheck concerns 2019-03-26 02:35:58 +00:00
menu.lua.8 Remove "All Rights Reserved" on files that I hold sole copyright on 2018-05-09 16:44:19 +00:00
password.lua lualoader: Clear the screen before prompting for password 2019-03-26 02:33:27 +00:00
password.lua.8 Add color.lua(8), password.lua(8), and screen.lua(8) 2018-08-20 02:37:24 +00:00
screen.lua Serial console menus for lua. 2018-08-20 16:44:09 +00:00
screen.lua.8 Add color.lua(8), password.lua(8), and screen.lua(8) 2018-08-20 02:37:24 +00:00