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