… | |
… | |
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 | |
… | |
… | |
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 | |