Created
August 12, 2020 00:57
-
-
Save ethanquix/bd6362a6c0f0764dc4888a4dacb495e5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Terminal colors (16 first used in escape sequence) */ | |
static const char *colorname[] = { | |
/* 8 normal colors */ | |
[0] = "#fbf8f9", /* black */ | |
[1] = "#697786", /* red */ | |
[2] = "#9f7b87", /* green */ | |
[3] = "#748593", /* yellow */ | |
[4] = "#a4929c", /* blue */ | |
[5] = "#e3a8a6", /* magenta */ | |
[6] = "#e1bfbe", /* cyan */ | |
[7] = "#0b2830", /* white */ | |
/* 8 bright colors */ | |
[8] = "#8a8081", /* black */ | |
[9] = "#697786", /* red */ | |
[10] = "#9f7b87", /* green */ | |
[11] = "#748593", /* yellow */ | |
[12] = "#a4929c", /* blue */ | |
[13] = "#e3a8a6", /* magenta */ | |
[14] = "#e1bfbe", /* cyan */ | |
[15] = "#0b2830", /* white */ | |
/* special colors */ | |
[256] = "#fbf8f9", /* background */ | |
[257] = "#0b2830", /* 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; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment