HomeFreeBSD

lualoader: don't botch disabling of color

Description

lualoader: don't botch disabling of color

When colors are disabled, color.escape{fg,bg} would return the passed in
color rather than the proper ANSI sequence for the color.
color.escape{fg,bg} would be wrong.

Instead return '', as the associated reset* functions will also return ''.
This should get rid of the funky '2' and '4' in the kernel selector if
you're booting serial.

Reported by: npn

Details

Provenance
kevansAuthored on Oct 21 2019, 8:09 PM
Parents
rGdfe76e95ae1b: Additional fix for -DNO_CLEAN build across r353340 and r353381
Branches
Unknown
Tags
Unknown

Event Timeline