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
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
Unknown Object (File)
Thu, Oct 2, 7:20 AM
Unknown Object (File)
Tue, Sep 30, 8:52 PM
Unknown Object (File)
Sat, Sep 27, 7:07 AM
Unknown Object (File)
Sep 6 2025, 12:51 PM
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