freebsd-dev/sys/teken
Bruce Evans 1370fa3380 Oops, my fix for bright colors broke bright black some more (in cases
that used to work via the bold hack).

Fix the table entry for bright black.  Fix spelling of plain black in
nearby table entries (use the macro for black everywhere everywhere).
Fix the currently-unused non-bright color table to not have bright
colors in entries 9-15.

Improve nearby comments.  Start converting to the xterm terminology
and default rendering of "bright" instead of "light" for bright
colors.

Syscons wasn't affected by the bug since I optimized it a little by
converting colors 0-15 directly.  This also fixes the layering of
the conversion for these colors.

Apply the same optimization to vt (actually the layer above it).  This
also moves the conversion 1 closer to the correct layer for colors
0-15.

The optimization of just avoiding 2 calls to a trivial function is worth
about 10% for simple output to the virtual buffer with occasional
rendering.  The optimization is so large because the 2 calls are done
on every character, so although there are too many other calls and
other instructions per character, there are only about 10 times as
many.  Old versions of syscons were about 10 times faster for simple
output, by using a fast path with about 12 instructions per character.
Rendering to even slow hardware takes relatively little time provided
it is rarely actually done.
2017-03-27 10:48:28 +00:00
..
demo
libteken Add teken_256to16() to convert xterm-256 256-color codes to xterm 16-color 2017-03-16 16:40:54 +00:00
stress
gensequences
sequences
teken_scs.h
teken_subr_compat.h Fix bright colors for syscons, and make them work for the first time 2017-03-18 11:13:54 +00:00
teken_subr.h Sync HPA and VPA implementations with CUP. 2015-08-24 07:49:27 +00:00
teken_wcwidth.h
teken.c Oops, my fix for bright colors broke bright black some more (in cases 2017-03-27 10:48:28 +00:00
teken.h Add teken_256to16() to convert xterm-256 256-color codes to xterm 16-color 2017-03-16 16:40:54 +00:00