freebsd-dev/sys/teken
Ed Schouten 56a4365bde Add 256 color support.
It is quite inconvenient that if an application for xterm uses 256 color
mode, text suddenly starts to blink (because of ;5; in the middle).
We'd better just implement 256 color mode and add a conversion routine
from 256 to 8 color mode, which doesn't seem to be too bad in practice.

Remapping colors is done quite simple. If one of the channels is most
actively represented, primary colors are used. If two channels are most
actively represented, secondary colors are used. If all three channels
are equal (gray), it picks between black and white.

Reported by:	Paul B. Mahol <onemda gmail com>
2009-09-26 15:26:32 +00:00
..
gensequences
Makefile
sequences Add a new escape sequence to switch between cons25 and xterm. 2009-09-25 13:51:01 +00:00
teken_demo.c Add 256 color support. 2009-09-26 15:26:32 +00:00
teken_scs.h Get rid of now deprecated SCS wrappers. 2009-09-26 15:03:42 +00:00
teken_stress.c Make the fuzzer a bit more useful by forcing 7-bit data into it. 2009-09-26 15:00:42 +00:00
teken_subr_compat.h Add 256 color support. 2009-09-26 15:26:32 +00:00
teken_subr.h Add 256 color support. 2009-09-26 15:26:32 +00:00
teken_wcwidth.h
teken.c Add 256 color support. 2009-09-26 15:26:32 +00:00
teken.h Add 256 color support. 2009-09-26 15:26:32 +00:00