Lines 84-127
static unsigned int tabspaces = 8;
Link Here
|
84 |
|
84 |
|
85 |
/* Terminal colors (16 first used in escape sequence) */ |
85 |
/* Terminal colors (16 first used in escape sequence) */ |
86 |
static const char *colorname[] = { |
86 |
static const char *colorname[] = { |
87 |
/* 8 normal colors */ |
|
|
88 |
"black", |
89 |
"red3", |
90 |
"green3", |
91 |
"yellow3", |
92 |
"blue2", |
93 |
"magenta3", |
94 |
"cyan3", |
95 |
"gray90", |
96 |
|
97 |
/* 8 bright colors */ |
98 |
"gray50", |
99 |
"red", |
100 |
"green", |
101 |
"yellow", |
102 |
"#5c5cff", |
103 |
"magenta", |
104 |
"cyan", |
105 |
"white", |
106 |
|
107 |
[255] = 0, |
108 |
|
109 |
/* more colors can be added after 255 to use with DefaultXX */ |
110 |
"#cccccc", |
111 |
"#555555", |
112 |
}; |
113 |
|
87 |
|
|
|
88 |
/* 8 normal colors */ |
89 |
[0] = "#000000", /* black */ |
90 |
[1] = "#ff5555", /* red */ |
91 |
[2] = "#50fa7b", /* green */ |
92 |
[3] = "#f1fa8c", /* yellow */ |
93 |
[4] = "#bd93f9", /* blue */ |
94 |
[5] = "#ff79c6", /* magenta */ |
95 |
[6] = "#8be9fd", /* cyan */ |
96 |
[7] = "#bbbbbb", /* white */ |
97 |
|
98 |
/* 8 bright colors */ |
99 |
[8] = "#44475a", /* black */ |
100 |
[9] = "#ff5555", /* red */ |
101 |
[10] = "#50fa7b", /* green */ |
102 |
[11] = "#f1fa8c", /* yellow */ |
103 |
[12] = "#bd93f9", /* blue */ |
104 |
[13] = "#ff79c6", /* magenta */ |
105 |
[14] = "#8be9fd", /* cyan */ |
106 |
[15] = "#ffffff", /* white */ |
107 |
|
108 |
/* special colors */ |
109 |
[256] = "#282a36", /* background */ |
110 |
[257] = "#f8f8f2", /* foreground */ |
111 |
}; |
114 |
|
112 |
|
115 |
/* |
113 |
/* |
116 |
* Default colors (colorname index) |
114 |
* Default colors (colorname index) |
117 |
* foreground, background, cursor, reverse cursor |
115 |
* foreground, background, cursor |
118 |
*/ |
116 |
*/ |
119 |
unsigned int defaultfg = 7; |
117 |
unsigned int defaultfg = 257; |
120 |
unsigned int defaultbg = 0; |
118 |
unsigned int defaultbg = 256; |
121 |
static unsigned int defaultcs = 256; |
119 |
static unsigned int defaultcs = 257; |
122 |
static unsigned int defaultrcs = 257; |
120 |
static unsigned int defaultrcs = 257; |
123 |
|
121 |
|
124 |
/* |
122 |
/* |
|
|
123 |
* Colors used, when the specific fg == defaultfg. So in reverse mode this |
124 |
* will reverse too. Another logic would only make the simple feature too |
125 |
* complex. |
126 |
*/ |
127 |
unsigned int defaultitalic = 7; |
128 |
unsigned int defaultunderline = 7; |
129 |
/* |
125 |
* Default shape of cursor |
130 |
* Default shape of cursor |
126 |
* 2: Block ("█") |
131 |
* 2: Block ("█") |
127 |
* 4: Underline ("_") |
132 |
* 4: Underline ("_") |