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)
Thu, Nov 6, 10:31 PM
Unknown Object (File)
Oct 29 2025, 2:48 PM
Unknown Object (File)
Oct 29 2025, 2:27 PM
Unknown Object (File)
Oct 29 2025, 2:21 PM
Unknown Object (File)
Oct 25 2025, 9:21 PM
Unknown Object (File)
Oct 18 2025, 9:03 PM
Unknown Object (File)
Oct 13 2025, 7:32 AM
Unknown Object (File)
Oct 12 2025, 6:04 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 64921
Build 61804: arc lint + arc unit