1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-28 03:06:20 -04:00

Bug 890, palette256: Change colors 0-15 to match xterm defaults.

This commit is contained in:
Kalle Olavi Niemitalo 2007-02-27 03:56:43 +02:00 committed by Kalle Olavi Niemitalo
parent 174a6459e6
commit 76be98030a

View File

@ -161,26 +161,27 @@ static const struct rgb palette88[] = {
#ifdef CONFIG_256_COLORS
/* Regexp'd from Dickey's xterm 256colres.h file. */
/* Colors 0- 16 are the ANSI colors (and the same as palette16[]).
/* Colors 0- 15 are the ANSI colors (from xterm-215/XTerm-col.ad
* and Xorg's rgb.txt, not the same as palette16[]).
* Colors 16-231 are a 6x6x6 color cube
* Colors 231-255 are a grayscale ramp (with black and white left out). */
static const struct rgb palette256[] = {
{0x00, 0x00, 0x00}, /* 0 */
{0x80, 0x00, 0x00}, /* 1 */
{0x00, 0x80, 0x00}, /* 2 */
{0xaa, 0x55, 0x00}, /* 3 */
{0x00, 0x00, 0x80}, /* 4 */
{0x80, 0x00, 0x80}, /* 5 */
{0x00, 0x80, 0x80}, /* 6 */
{0xaa, 0xaa, 0xaa}, /* 7 */
{0x55, 0x55, 0x55}, /* 8 */
{0xff, 0x55, 0x55}, /* 9 */
{0x55, 0xff, 0x55}, /* 10 */
{0xff, 0xff, 0x55}, /* 11 */
{0x55, 0x55, 0xff}, /* 12 */
{0xff, 0x55, 0xff}, /* 13 */
{0x55, 0xff, 0xff}, /* 14 */
{0xff, 0xff, 0xff}, /* 15 */
{0x00, 0x00, 0x00}, /* 0 black */
{0xcd, 0x00, 0x00}, /* 1 red3 */
{0x00, 0xcd, 0x00}, /* 2 green3 */
{0xcd, 0xcd, 0x00}, /* 3 yellow3 */
{0x00, 0x00, 0xee}, /* 4 blue2 */
{0xcd, 0x00, 0xcd}, /* 5 magenta3 */
{0x00, 0xcd, 0xcd}, /* 6 cyan3 */
{0xe5, 0xe5, 0xe5}, /* 7 gray90 */
{0x7f, 0x7f, 0x7f}, /* 8 gray50 */
{0xff, 0x00, 0x00}, /* 9 red */
{0x00, 0xff, 0x00}, /* 10 green */
{0xff, 0xff, 0x00}, /* 11 yellow */
{0x5c, 0x5c, 0xff}, /* 12 rgb:5c/5c/ff */
{0xff, 0x00, 0xff}, /* 13 magenta */
{0x00, 0xff, 0xff}, /* 14 cyan */
{0xff, 0xff, 0xff}, /* 15 white */
{0x00, 0x00, 0x00}, /* 16 */
{0x00, 0x00, 0x5f}, /* 17 */