… | |
… | |
306 | SECONDARY, |
306 | SECONDARY, |
307 | }; |
307 | }; |
308 | |
308 | |
309 | #define RS_None 0 |
309 | #define RS_None 0 |
310 | |
310 | |
|
|
311 | #ifndef USE_256_COLORS |
311 | #define RS_colorMask 0x0000007fUL // 128 colors |
312 | #define RS_colorMask 0x0000007fUL // 128 colors |
|
|
313 | #else |
|
|
314 | #define RS_colorMask 0x000001ffUL |
|
|
315 | #endif |
312 | #define RS_fgShift 0 |
316 | #define RS_fgShift 0 |
313 | #define RS_bgShift Color_Bits |
317 | #define RS_bgShift Color_Bits |
314 | #define RS_fgMask (RS_colorMask << RS_fgShift) |
318 | #define RS_fgMask (RS_colorMask << RS_fgShift) |
315 | #define RS_bgMask (RS_colorMask << RS_bgShift) |
319 | #define RS_bgMask (RS_colorMask << RS_bgShift) |
316 | |
320 | |
… | |
… | |
327 | #define RS_customCount 16 |
331 | #define RS_customCount 16 |
328 | #define RS_customMask 0x07800000UL |
332 | #define RS_customMask 0x07800000UL |
329 | #define RS_customShift 23 |
333 | #define RS_customShift 23 |
330 | |
334 | |
331 | // must have space for rxvt_fontset::fontCount * 2 + 2 values |
335 | // must have space for rxvt_fontset::fontCount * 2 + 2 values |
332 | #define RS_fontMask 0x001f0000UL // includes RS_Careful |
336 | #define RS_fontMask 0x007c0000UL // includes RS_Careful |
333 | #define RS_fontShift 18 |
337 | #define RS_fontShift 18 |
334 | #define RS_Careful 0x00010000UL /* be careful when drawing these */ |
338 | #define RS_Careful 0x00010000UL /* be careful when drawing these */ |
335 | |
339 | |
336 | // toggle this to force redraw, must be != RS_Careful and otherwise "pretty neutral" |
340 | // toggle this to force redraw, must be != RS_Careful and otherwise "pretty neutral" |
337 | #define RS_redraw 0x00020000UL |
341 | #define RS_redraw 0x00020000UL |
… | |
… | |
458 | Color_White = maxBrightCOLOR, |
462 | Color_White = maxBrightCOLOR, |
459 | #else |
463 | #else |
460 | Color_White = maxCOLOR, |
464 | Color_White = maxCOLOR, |
461 | #endif |
465 | #endif |
462 | minTermCOLOR = Color_White + 1, |
466 | minTermCOLOR = Color_White + 1, |
463 | #ifndef XTERM_256_COLORS |
467 | #ifndef USE_256_COLORS |
464 | maxTermCOLOR = Color_White + 72, |
468 | maxTermCOLOR = Color_White + 72, |
465 | #else |
469 | #else |
466 | maxTermCOLOR = Color_White + 240, |
470 | maxTermCOLOR = Color_White + 240, |
467 | #endif |
471 | #endif |
468 | #ifndef NO_CURSORCOLOR |
472 | #ifndef NO_CURSORCOLOR |
… | |
… | |
502 | #else |
506 | #else |
503 | TOTAL_COLORS = NRS_COLORS |
507 | TOTAL_COLORS = NRS_COLORS |
504 | #endif |
508 | #endif |
505 | }; |
509 | }; |
506 | |
510 | |
507 | #ifndef XTERM_256_COLORS |
511 | #ifndef USE_256_COLORS |
508 | #define Color_Bits 7 // 0 .. maxTermCOLOR |
512 | #define Color_Bits 7 // 0 .. maxTermCOLOR |
509 | #else |
513 | #else |
510 | #define Color_Bits 9 // 0 .. maxTermCOLOR |
514 | #define Color_Bits 9 // 0 .. maxTermCOLOR |
511 | #endif |
515 | #endif |
512 | |
516 | |