]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
lualoader: don't botch disabling of color
authorkevans <kevans@FreeBSD.org>
Mon, 21 Oct 2019 20:09:43 +0000 (20:09 +0000)
committerkevans <kevans@FreeBSD.org>
Mon, 21 Oct 2019 20:09:43 +0000 (20:09 +0000)
commit3c286dfb691984966bbd12933e34d144ff05911f
tree1ceb7f37c96ae23dd2a0bdfc1574f9d21b7de003
parent476da9c53062d01785d9d69353ab89f48ada1fb0
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
stand/lua/color.lua
stand/lua/screen.lua