From 76be98030acc677e0ce54f4402ad0038c5a04a24 Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Tue, 27 Feb 2007 03:56:43 +0200 Subject: [PATCH] Bug 890, palette256: Change colors 0-15 to match xterm defaults. --- src/terminal/palette.inc | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/src/terminal/palette.inc b/src/terminal/palette.inc index 792ed1c9..86baeb80 100644 --- a/src/terminal/palette.inc +++ b/src/terminal/palette.inc @@ -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 */