123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- /* Terminal colors (16 first used in escape sequence) */
- static const char *colorname[] = {
- /* 8 normal colors */
- [0] = "#303030", /* black */
- [1] = "#a43261", /* red */
- [2] = "#006ca5", /* green */
- [3] = "#007086", /* yellow */
- [4] = "#0a62f0", /* blue */
- [5] = "#aa00aa", /* magenta */
- [6] = "#0061b1", /* cyan */
- [7] = "#c6c6c6", /* white */
- /* 8 bright colors */
- [8] = "#5e5e5e", /* black */
- [9] = "#ff9fc9", /* red */
- [10] = "#3bd6ff", /* green */
- [11] = "#00ddf4", /* yellow */
- [12] = "#0aa5f0", /* blue */
- [13] = "#ff55ff", /* magenta */
- [14] = "#93c9ff", /* cyan */
- [15] = "#ffffff", /* white */
- /* special colors */
- [256] = "#120012", /* background */
- [257] = "#0aa5f0", /* 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;
|