freebsd-skq/sys/dev/vt
dumbbell 9ac8060e57 vt(4): Colors are indexed against a console palette, not a VGA palette
Rename vt_generate_vga_palette() to vt_generate_cons_palette() and
change it to build a palette where the color index is the same than in
terminal escape codes, not the VGA index. That's what TCHAR_CREATE()
uses and passes to vt(4).

The main differences between both orders are:
    o  Blue and red are swapped (1 <-> 4)
    o  Yellow and cyan are swapped (3 <-> 6)

The problem remained unnoticed, because the RGB bit indexes passed to
vt_generate_vga_palette() were reversed. This inversion was cancelled
by the colors inversions in the generated palette. For instance, red
(0xff0000) and blue (0x0000ff) have bytes in opposite order, but were
swapped in the palette. But after changing the value of blue (see last
paragraph), the modified color was in fact the red one.

While here, tune the palette to better match console colors and improve
the readability (especially the dark blue).

This is an MFC of r269783 and r269791.
2014-08-21 10:18:42 +00:00
..
colors vt(4): Colors are indexed against a console palette, not a VGA palette 2014-08-21 10:18:42 +00:00
font MFC r267109, r267179: Update vt(4) "Terminus BSD Console" font 2014-06-12 01:33:01 +00:00
hw vt(4): Colors are indexed against a console palette, not a VGA palette 2014-08-21 10:18:42 +00:00
logo
vt_buf.c vt(4): Add vtbuf_dirty*_locked() to lock vtbuf once, not twice 2014-08-19 20:53:28 +00:00
vt_consolectl.c 267622 Log: 2014-07-07 14:16:05 +00:00
vt_core.c MFC r268947: Hide syscons-specific workaround under DEV_SC 2014-07-24 15:18:19 +00:00
vt_font.c
vt_sysmouse.c 267622 Log: 2014-07-07 14:16:05 +00:00
vt.h 267622 Log: 2014-07-07 14:16:05 +00:00