vt: emulate 8- and 24-bit colour codes.
authorAdam Borowski <kilobyte@angband.pl>
Thu, 22 May 2014 23:33:08 +0000 (01:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 May 2014 20:14:08 +0000 (13:14 -0700)
commitcec5b2a97a11ade56a701e83044d0a2a984c67b4
tree7bd36047391e98e7730b4af199807996db756044
parent7fa21dd8bd191564a195291161d6b43db5d9c350
vt: emulate 8- and 24-bit colour codes.

Most other mainstream terminals support "xterm256" colours, which means
people sometimes use these blindly without checking capabilities.

Because of hardware limitations of VGA consoles, colours are downgraded to
16 foregrounds and 8 backgrounds.  On fbdev consoles it would be possible
to support them without quality loss, but adding that would require quite a
large amount of code.

Signed-off-by: Adam Borowski <kilobyte@angband.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/vt.c