Date: Sat, 17 Jan 2009 23:01:40 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/dev/syscons/teken teken_subr_compat.h Message-ID: <200901172301.n0HN1s15048328@repoman.freebsd.org>
index | next in thread | raw e-mail
ed 2009-01-17 23:01:40 UTC
FreeBSD src repository
Modified files:
sys/dev/syscons/teken teken_subr_compat.h
Log:
SVN rev 187374 on 2009-01-17 23:01:40Z by ed
Fix for my previous commit: color mapping is not 1:1.
Cons25 doesn't seem to use a straight 1:1 mapping to the ANSI colors,
but uses the same color numbers as at least used by syscons on i386. I
suspect if you change the definitions on a different architecture,
things may break? Not sure.
Add a small array to convert syscons-style color codes to ANSI
equivalents, which are used by libteken internally. I didn't notice this
bug, because I only tested my code with black, white and green, all of
them shared the same numbers.
Revision Changes Path
1.3 +7 -4 src/sys/dev/syscons/teken/teken_subr_compat.h
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901172301.n0HN1s15048328>
