|
|
|
@ -108,40 +108,37 @@ unsigned int tabspaces = 8;
|
|
|
|
|
/* Terminal colors (16 first used in escape sequence) */
|
|
|
|
|
static const char *colorname[] = {
|
|
|
|
|
/* 8 normal colors */
|
|
|
|
|
"black",
|
|
|
|
|
"red3",
|
|
|
|
|
"green3",
|
|
|
|
|
"yellow3",
|
|
|
|
|
"blue2",
|
|
|
|
|
"magenta3",
|
|
|
|
|
"cyan3",
|
|
|
|
|
"gray90",
|
|
|
|
|
"#181818", /* black */
|
|
|
|
|
"#ab4642", /* red */
|
|
|
|
|
"#a1b56c", /* green */
|
|
|
|
|
"#f7ca88", /* yellow */
|
|
|
|
|
"#7cafc2", /* blue */
|
|
|
|
|
"#ba8baf", /* magenta */
|
|
|
|
|
"#86c1b9", /* cyan */
|
|
|
|
|
"#d8d8d8", /* white */
|
|
|
|
|
|
|
|
|
|
/* 8 bright colors */
|
|
|
|
|
"gray50",
|
|
|
|
|
"red",
|
|
|
|
|
"green",
|
|
|
|
|
"yellow",
|
|
|
|
|
"#5c5cff",
|
|
|
|
|
"magenta",
|
|
|
|
|
"cyan",
|
|
|
|
|
"white",
|
|
|
|
|
|
|
|
|
|
[255] = 0,
|
|
|
|
|
|
|
|
|
|
/* more colors can be added after 255 to use with DefaultXX */
|
|
|
|
|
"#cccccc",
|
|
|
|
|
"#555555",
|
|
|
|
|
"#181818", /* black */
|
|
|
|
|
"#ab4642", /* red */
|
|
|
|
|
"#a1b56c", /* green */
|
|
|
|
|
"#f7ca88", /* yellow */
|
|
|
|
|
"#7cafc2", /* blue */
|
|
|
|
|
"#ba8baf", /* magenta */
|
|
|
|
|
"#86c1b9", /* cyan */
|
|
|
|
|
"#d8d8d8", /* white */
|
|
|
|
|
|
|
|
|
|
/* special colors */
|
|
|
|
|
[256] = "#ffffff",
|
|
|
|
|
[257] = "#000000",
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Default colors (colorname index)
|
|
|
|
|
* foreground, background, cursor, reverse cursor
|
|
|
|
|
*/
|
|
|
|
|
unsigned int defaultfg = 7;
|
|
|
|
|
unsigned int defaultfg = 256;
|
|
|
|
|
unsigned int defaultbg = 0;
|
|
|
|
|
static unsigned int defaultcs = 256;
|
|
|
|
|
static unsigned int defaultcs = 2;
|
|
|
|
|
static unsigned int defaultrcs = 257;
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|