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

(cherry picked from commit e9249ef9582bec08b9afc3ae65b97f6ffffc6bdf)

Details

Provenance
emasteAuthored on Mar 11 2022, 7:27 PM
Parents
rG1dcb6002c500: loader: support numeric and named bright colors (8-15)
Branches
Unknown
Tags
Unknown