]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
lualoader: More black-on-white fixes
authorkevans <kevans@FreeBSD.org>
Tue, 12 Jun 2018 03:44:34 +0000 (03:44 +0000)
committerkevans <kevans@FreeBSD.org>
Tue, 12 Jun 2018 03:44:34 +0000 (03:44 +0000)
commitb3e246ad5eaa5c1c3c2d27fbdd33c9897894b88c
tree777d3061336f1bba6d075f00f29c862fde5e8591
parent3e9b9088a01e69469369d3625d7ad2fd24047c2f
lualoader: More black-on-white fixes

To recap the problem: with a black-on-white xterm, the menu draws terribly.
Ideally, we would try our best for a white-on-black context for the menu
since graphics and whatnot might not be tested for other setups and there's
no reasonable way to sample the terminal at this point for the used color
scheme.

This commit attempts to address that further in two ways:
- Instead of issuing CSI bg/fg resets (CSI 39m and CSI 49m respectively for
  "default"), issue CSI bg/fg escape sequences for our expected color scheme
- Reset to *our* default color scheme before we even attempt to load the
  local module, so that we personally don't have any earlier text with the
  console default color scheme.

Reported by: emaste (again)
stand/lua/color.lua
stand/lua/loader.lua