HomeFreeBSD

loader: accept "yellow" as a named color

Description

loader: accept "yellow" as a named color

For historical reasons console color number 3 may be either yellow (most
consoles) or brown (VGA palette). The console escape code standard
uses "yellow", but teken color name constants appear to be based on the
VGA scheme and use TC_BROWN for color 3. Even so, the palette table
used 50,50,0 as the RGB percentage tuple, resulting in a dim yellow for
framebuffer consoles at the time teken was introduced.

Amusingly, in 19e2ce2d8367 the comment on the palette entry was changed
from "brown" to "dark yellow" but the colour itself was changed from
a pure yellow to being somewhat brown.

MFC after: 1 week
Sponsored by: The FreeBSD Foundation

Details

Provenance
emasteAuthored on Mar 11 2022, 7:27 PM
Parents
rG6bb7ba4aa180: arm64 hwpmc: Support restricting counters to user or kernel mode.
Branches
Unknown
Tags
Unknown