backend color number changes

This commit is contained in:
Luke Smith 2020-02-09 15:48:07 -05:00
parent 66780d00e4
commit e2a59d5521
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252

View File

@ -106,9 +106,10 @@ static const char *colorname[] = {
"#ebdbb2",
[255] = 0,
/* more colors can be added after 255 to use with DefaultXX */
"#282828", /* 256 -> bg */
"#ebdbb2", /* 257 -> fg */
"#add8e6", /* 258 -> cursor */
"#add8e6", /* 256 -> cursor */
"#555555", /* 257 -> rev cursor*/
"#282828", /* 258 -> bg */
"#ebdbb2", /* 259 -> fg */
};
@ -116,10 +117,10 @@ static const char *colorname[] = {
* Default colors (colorname index)
* foreground, background, cursor, reverse cursor
*/
unsigned int defaultfg = 257;
unsigned int defaultbg = 256;
static unsigned int defaultcs = 258;
static unsigned int defaultrcs = 0;
unsigned int defaultfg = 259;
unsigned int defaultbg = 258;
static unsigned int defaultcs = 256;
static unsigned int defaultrcs = 257;
/*
* Default shape of cursor
@ -172,9 +173,9 @@ ResourcePref resources[] = {
{ "color13", STRING, &colorname[13] },
{ "color14", STRING, &colorname[14] },
{ "color15", STRING, &colorname[15] },
{ "background", STRING, &colorname[256] },
{ "foreground", STRING, &colorname[257] },
{ "cursorColor", STRING, &colorname[258] },
{ "background", STRING, &colorname[258] },
{ "foreground", STRING, &colorname[259] },
{ "cursorColor", STRING, &colorname[256] },
{ "termname", STRING, &termname },
{ "shell", STRING, &shell },
{ "xfps", INTEGER, &xfps },