1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | /* Terminal colors (16 first used in escape sequence) */
static const char *colorname[] = {
/* 8 normal colors */
"#222222",
"#DD3344",
"#22DD55",
"#DDEE44",
"#33AAFF",
"#CC44BB",
"#44CCDD",
"#EEEEEE",
/* 8 bright colors */
"#444444",
"#FF5566",
"#44FF77",
"#FFFF77",
"#66CCFF",
"#EE66DD",
"#66EEFF",
"#FFFFFF",
[255] = 0,
/* more colors can be added after 255 to use with DefaultXX */
"#111111",
};
/*
* Default colors (colorname index)
* foreground, background, cursor
*/
static unsigned int defaultfg = 15;
static unsigned int defaultbg = 256;
static unsigned int defaultcs = 2;
|
x