From 956ee0b309af1b49cfd2902f530a9404456cbd05 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Thu, 4 May 2006 21:34:10 +0000 Subject: [PATCH] * Use a slightly different RGB palette for ANSI colours, so that brown really looks like brown and not like desaturated yellow. --- cucul/colour.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cucul/colour.c b/cucul/colour.c index 02536a4..3f00d52 100644 --- a/cucul/colour.c +++ b/cucul/colour.c @@ -26,10 +26,13 @@ #include "cucul.h" #include "cucul_internals.h" +/* RGB colours for the ANSI palette. There is no real standard, so we + * use the same values as gnome-terminal. The 7th colour (brown) is a bit + * special. */ static const uint16_t ansitab[16] = { - 0xf000, 0xf008, 0xf080, 0xf088, 0xf800, 0xf808, 0xf880, 0xf888, - 0xf444, 0xf44f, 0xf4f4, 0xf4ff, 0xff44, 0xff4f, 0xfff4, 0xffff, + 0xf000, 0xf00a, 0xf0a0, 0xf0aa, 0xfa00, 0xfa0a, 0xfa50, 0xfaaa, + 0xf555, 0xf55f, 0xf5f5, 0xf5ff, 0xff55, 0xff5f, 0xfff5, 0xffff, }; /** \brief Set the default colour pair.