/* Terminal colors (16 first used in escape sequence) */ static const char *colorname[] = { /* 8 normal colors */ [0] = "#181411", /* black */ [1] = "#a63221", /* red */ [2] = "#768948", /* green */ [3] = "#d6a22e", /* yellow */ [4] = "#33658a", /* blue */ [5] = "#585481", /* magenta */ [6] = "#599a82", /* cyan */ [7] = "#9a9a9a", /* white */ /* 8 bright colors */ [8] = "#2b2722", /* black */ [9] = "#a63221", /* red */ [10] = "#768948", /* green */ [11] = "#d6a22e", /* yellow */ [12] = "#33658a", /* blue */ [13] = "#7473a3", /* magenta */ [14] = "#599a82", /* cyan */ [15] = "#bfbbb6", /* white */ /* special colors */ [256] = "#181411", /* background */ [257] = "#bfbbb6", /* 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;