2019-05-29 14:34:04 +00:00
|
|
|
/* Terminal colors (16 first used in escape sequence) */
|
|
|
|
static const char *colorname[] = {
|
|
|
|
|
|
|
|
/* 8 normal colors */
|
|
|
|
[0] = "#15041a", /* black */
|
|
|
|
[1] = "#9c1961", /* red */
|
|
|
|
[2] = "#29944b", /* green */
|
|
|
|
[3] = "#33886a", /* yellow */
|
|
|
|
[4] = "#583db4", /* blue */
|
|
|
|
[5] = "#b01184", /* magenta */
|
|
|
|
[6] = "#3971a8", /* cyan */
|
|
|
|
[7] = "#a4a1ad", /* white */
|
|
|
|
|
|
|
|
/* 8 bright colors */
|
|
|
|
[8] = "#40092b", /* black */
|
|
|
|
[9] = "#e24d85", /* red */
|
|
|
|
[10] = "#3fd76f", /* green */
|
|
|
|
[11] = "#4cc79c", /* yellow */
|
|
|
|
[12] = "#534de2", /* blue */
|
|
|
|
[13] = "#e24db9", /* magenta */
|
|
|
|
[14] = "#489fd7", /* cyan */
|
|
|
|
[15] = "#d3ccea", /* white */
|
|
|
|
|
2019-06-01 17:50:29 +00:00
|
|
|
[255] = 0,
|
|
|
|
|
2019-05-29 14:34:04 +00:00
|
|
|
/* special colors */
|
2019-06-01 17:50:29 +00:00
|
|
|
[256] = "#c27dd9", /* foreground */
|
|
|
|
[257] = "#111012", /* background */
|
2019-05-29 14:34:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Default colors (colorname index)
|
2019-06-01 17:50:29 +00:00
|
|
|
* foreground, background, cursor,
|
2019-05-29 14:34:04 +00:00
|
|
|
*/
|
|
|
|
static unsigned int defaultfg = 257;
|
|
|
|
static unsigned int defaultbg = 256;
|
|
|
|
static unsigned int defaultcs = 257;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Colors used, when the specific fg == defaultfg. So in reverse mode this
|
|
|
|
* will reverse too. Another logic would only make the simple feature too
|
|
|
|
* complex.
|
|
|
|
*/
|
|
|
|
static unsigned int defaultitalic = 7;
|
|
|
|
static unsigned int defaultunderline = 7;
|