2019-06-01 17:50:29 +00:00
|
|
|
/* Terminal colors (16 first used in escape sequence) */
|
|
|
|
static const char *colorname[] = {
|
|
|
|
|
|
|
|
/* 8 normal colors */
|
2019-06-01 20:13:05 +00:00
|
|
|
[0] = "#282e28", /* black */
|
2019-06-01 17:50:29 +00:00
|
|
|
[1] = "#9c001f", /* red */
|
|
|
|
[2] = "#009a1f", /* green */
|
|
|
|
[3] = "#a48300", /* yellow */
|
|
|
|
[4] = "#008b54", /* blue */
|
|
|
|
[5] = "#8b5b00", /* magenta */
|
|
|
|
[6] = "#006f5c", /* cyan */
|
|
|
|
[7] = "#70a281", /* white */
|
|
|
|
|
|
|
|
/* 8 bright colors */
|
2019-06-01 20:13:05 +00:00
|
|
|
[8] = "#374138", /* black */
|
2019-06-01 17:50:29 +00:00
|
|
|
[9] = "#ff0033", /* red */
|
|
|
|
[10] = "#00ff33", /* green */
|
|
|
|
[11] = "#ebbb00", /* yellow */
|
|
|
|
[12] = "#00f896", /* blue */
|
|
|
|
[13] = "#e99900", /* magenta */
|
|
|
|
[14] = "#00d7b2", /* cyan */
|
|
|
|
[15] = "#b1ffcb", /* white */
|
|
|
|
|
|
|
|
[255] = 0,
|
|
|
|
|
|
|
|
/* special colors */
|
2019-06-01 20:13:05 +00:00
|
|
|
[256] = "#141514", /* background */
|
2019-06-01 17:50:29 +00:00
|
|
|
[257] = "#00ca28", /* foreground */
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Default colors (colorname index)
|
|
|
|
* foreground, background, cursor
|
|
|
|
*/
|
|
|
|
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;
|