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