Page MenuHomeFreeBSD

stand: split fg/bg handling up a little further
ClosedPublic

Authored by kevans on Jun 16 2025, 10:36 PM.
Tags
None
Referenced Files
F133958428: D50887.id160794.diff
Wed, Oct 29, 2:48 PM
F133956299: D50887.id.diff
Wed, Oct 29, 2:27 PM
F133955878: D50887.diff
Wed, Oct 29, 2:21 PM
Unknown Object (File)
Sat, Oct 25, 9:21 PM
Unknown Object (File)
Sat, Oct 18, 9:03 PM
Unknown Object (File)
Mon, Oct 13, 7:32 AM
Unknown Object (File)
Sun, Oct 12, 6:04 PM
Unknown Object (File)
Sun, Oct 5, 5:42 AM
Subscribers

Details

Summary

These can be setup independently, so we should also check them and
initialize each independently. This fixes a pre-existing bug where-in we
may not pickup a bg color specified in the environment if a fg color wasn't
set.

The new version also ensures that we're hooking the color vars properly if
we're using a value that was already there, as the console may need to
adjust if something wants to switch them up again. Otherwise, a
teken.fg_color set in loader could conceivably occur that only changes the
color when you get to the kernel, which could be surprising.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable