Browse Source

* Use a slightly different RGB palette for ANSI colours, so that brown

really looks like brown and not like desaturated yellow.
tags/v0.99.beta14
Sam Hocevar sam 19 years ago
parent
commit
956ee0b309
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      cucul/colour.c

+ 5
- 2
cucul/colour.c View File

@@ -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.


Loading…
Cancel
Save