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
F160400596: D50887.diff
Wed, Jun 24, 3:29 AM
Unknown Object (File)
Wed, Jun 17, 6:02 AM
Unknown Object (File)
Fri, May 29, 4:42 AM
Unknown Object (File)
Wed, May 27, 12:32 PM
Unknown Object (File)
Mon, May 25, 9:19 PM
Unknown Object (File)
Mon, May 25, 12:28 PM
Unknown Object (File)
May 20 2026, 11:14 PM
Unknown Object (File)
May 14 2026, 11:04 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 64921
Build 61804: arc lint + arc unit