… | |
… | |
247 | # define COLORTERMENVFULL COLORTERMENV "-xpm" |
247 | # define COLORTERMENVFULL COLORTERMENV "-xpm" |
248 | #else |
248 | #else |
249 | # define COLORTERMENVFULL COLORTERMENV |
249 | # define COLORTERMENVFULL COLORTERMENV |
250 | #endif |
250 | #endif |
251 | #ifndef TERMENV |
251 | #ifndef TERMENV |
|
|
252 | # if USE_256_COLORS |
|
|
253 | # define TERMENV "rxvt-unicode-256color" |
|
|
254 | # else |
252 | # define TERMENV "rxvt-unicode" |
255 | # define TERMENV "rxvt-unicode" |
|
|
256 | # endif |
253 | #endif |
257 | #endif |
254 | |
258 | |
255 | #if defined (NO_MOUSE_REPORT) && !defined (NO_MOUSE_REPORT_SCROLLBAR) |
259 | #if defined (NO_MOUSE_REPORT) && !defined (NO_MOUSE_REPORT_SCROLLBAR) |
256 | # define NO_MOUSE_REPORT_SCROLLBAR 1 |
260 | # define NO_MOUSE_REPORT_SCROLLBAR 1 |
257 | #endif |
261 | #endif |
… | |
… | |
319 | #define RS_fgMask (RS_colorMask << RS_fgShift) |
323 | #define RS_fgMask (RS_colorMask << RS_fgShift) |
320 | |
324 | |
321 | // must have space for rxvt_fontset::fontCount * 2 + 2 values |
325 | // must have space for rxvt_fontset::fontCount * 2 + 2 values |
322 | #define RS_fontShift (RS_fgShift + Color_Bits) |
326 | #define RS_fontShift (RS_fgShift + Color_Bits) |
323 | #define RS_Careful (1UL << RS_fontShift) /* be careful when drawing these */ |
327 | #define RS_Careful (1UL << RS_fontShift) /* be careful when drawing these */ |
|
|
328 | #define RS_fontCount rxvt_fontset::fontCount |
324 | #define RS_fontMask ((rxvt_fontset::fontCount << (RS_fontShift + 1)) | RS_Careful) // includes RS_Careful |
329 | #define RS_fontMask ((RS_fontCount << (RS_fontShift + 1)) | RS_Careful) // includes RS_Careful |
325 | |
330 | |
326 | // toggle this to force redraw, must be != RS_Careful and otherwise "pretty neutral" |
331 | // toggle this to force redraw, must be != RS_Careful and otherwise "pretty neutral" |
327 | #define RS_redraw (2UL << RS_fontShift) |
332 | #define RS_redraw (2UL << RS_fontShift) |
|
|
333 | |
|
|
334 | #define RS_Sel (1UL << 22) |
328 | |
335 | |
329 | // 5 custom bits for extensions |
336 | // 5 custom bits for extensions |
330 | #define RS_customCount 16UL |
337 | #define RS_customCount 16UL |
331 | #define RS_customShift 23 |
338 | #define RS_customShift 23 |
332 | #define RS_customMask ((RS_customCount - 1UL) << RS_customShift) |
339 | #define RS_customMask ((RS_customCount - 1UL) << RS_customShift) |
… | |
… | |
385 | XTerm_Color_cursor = 12, // change actual 'Cursor' color |
392 | XTerm_Color_cursor = 12, // change actual 'Cursor' color |
386 | XTerm_Color_pointer_fg = 13, // change actual 'Pointer' fg color |
393 | XTerm_Color_pointer_fg = 13, // change actual 'Pointer' fg color |
387 | XTerm_Color_pointer_bg = 14, // change actual 'Pointer' bg color |
394 | XTerm_Color_pointer_bg = 14, // change actual 'Pointer' bg color |
388 | XTerm_Color05 = 15, // not implemented (tektronix fg) |
395 | XTerm_Color05 = 15, // not implemented (tektronix fg) |
389 | XTerm_Color06 = 16, // not implemented (tektronix bg) |
396 | XTerm_Color06 = 16, // not implemented (tektronix bg) |
390 | XTerm_Color_RV = 17, // change actual 'Highlight' color |
397 | XTerm_Color_HC = 17, // change actual 'Highlight' bg color |
|
|
398 | XTerm_Color_HTC = 19, // change actual 'Highlight' fg color |
391 | XTerm_logfile = 46, // not implemented |
399 | XTerm_logfile = 46, // not implemented |
392 | XTerm_font = 50, |
400 | XTerm_font = 50, |
393 | |
401 | |
394 | XTerm_konsole30 = 30, // reserved for konsole |
402 | XTerm_konsole30 = 30, // reserved for konsole |
395 | XTerm_konsole31 = 31, // reserved for konsole |
403 | XTerm_konsole31 = 31, // reserved for konsole |
… | |
… | |
397 | /* |
405 | /* |
398 | * rxvt extensions of XTerm OSCs: ESC ] Ps;Pt (ST|BEL) |
406 | * rxvt extensions of XTerm OSCs: ESC ] Ps;Pt (ST|BEL) |
399 | */ |
407 | */ |
400 | |
408 | |
401 | // deprecated |
409 | // deprecated |
402 | Rxvt_Color_BD = 18, |
|
|
403 | Rxvt_Color_UL = 19, |
|
|
404 | Rxvt_restoreFG = 39, |
410 | Rxvt_restoreFG = 39, |
405 | Rxvt_restoreBG = 49, |
411 | Rxvt_restoreBG = 49, |
406 | |
412 | |
407 | Rxvt_Pixmap = 20, // new bg pixmap |
413 | Rxvt_Pixmap = 20, // new bg pixmap |
408 | Rxvt_dumpscreen = 55, // dump scrollback and all of screen |
414 | Rxvt_dumpscreen = 55, // dump scrollback and all of screen |
… | |
… | |
462 | Color_White = maxBrightCOLOR, |
468 | Color_White = maxBrightCOLOR, |
463 | #else |
469 | #else |
464 | Color_White = maxCOLOR, |
470 | Color_White = maxCOLOR, |
465 | #endif |
471 | #endif |
466 | minTermCOLOR = Color_White + 1, |
472 | minTermCOLOR = Color_White + 1, |
467 | #ifndef USE_256_COLORS |
473 | #if USE_256_COLORS |
|
|
474 | maxTermCOLOR = Color_White + 240, |
|
|
475 | #else |
468 | maxTermCOLOR = Color_White + 72, |
476 | maxTermCOLOR = Color_White + 72, |
469 | #else |
|
|
470 | maxTermCOLOR = Color_White + 240, |
|
|
471 | #endif |
477 | #endif |
472 | #ifndef NO_CURSORCOLOR |
478 | #ifndef NO_CURSORCOLOR |
473 | Color_cursor, |
479 | Color_cursor, |
474 | Color_cursor2, |
480 | Color_cursor2, |
475 | #endif |
481 | #endif |
… | |
… | |
485 | #if ENABLE_FRILLS |
491 | #if ENABLE_FRILLS |
486 | Color_underline, |
492 | Color_underline, |
487 | #endif |
493 | #endif |
488 | #ifdef OPTION_HC |
494 | #ifdef OPTION_HC |
489 | Color_HC, |
495 | Color_HC, |
|
|
496 | Color_HTC, |
490 | #endif |
497 | #endif |
491 | Color_scroll, |
498 | Color_scroll, |
492 | #ifdef RXVT_SCROLLBAR |
499 | #ifdef RXVT_SCROLLBAR |
493 | Color_trough, |
500 | Color_trough, |
494 | #endif |
501 | #endif |
… | |
… | |
506 | #else |
513 | #else |
507 | TOTAL_COLORS = NRS_COLORS |
514 | TOTAL_COLORS = NRS_COLORS |
508 | #endif |
515 | #endif |
509 | }; |
516 | }; |
510 | |
517 | |
511 | #ifndef USE_256_COLORS |
518 | #if USE_256_COLORS |
512 | #define Color_Bits 7 // 0 .. maxTermCOLOR |
519 | # define Color_Bits 9 // 0 .. maxTermCOLOR |
513 | #else |
520 | #else |
514 | #define Color_Bits 9 // 0 .. maxTermCOLOR |
521 | # define Color_Bits 7 // 0 .. maxTermCOLOR |
515 | #endif |
522 | #endif |
516 | |
523 | |
517 | /* |
524 | /* |
518 | * Resource list |
525 | * Resource list |
519 | */ |
526 | */ |
… | |
… | |
957 | scrollBar_t scrollBar; |
964 | scrollBar_t scrollBar; |
958 | uint8_t options[(Opt_count + 7) >> 3]; |
965 | uint8_t options[(Opt_count + 7) >> 3]; |
959 | XSizeHints szHint; |
966 | XSizeHints szHint; |
960 | rxvt_color *pix_colors; |
967 | rxvt_color *pix_colors; |
961 | Cursor TermWin_cursor; /* cursor for vt window */ |
968 | Cursor TermWin_cursor; /* cursor for vt window */ |
962 | int numlock_state; |
|
|
963 | line_t *row_buf; // all lines, scrollback + terminal, circular, followed by temp_buf |
969 | line_t *row_buf; // all lines, scrollback + terminal, circular, followed by temp_buf |
964 | line_t *drawn_buf; // text on screen |
970 | line_t *drawn_buf; // text on screen |
965 | line_t *swap_buf; // lines for swap buffer |
971 | line_t *swap_buf; // lines for swap buffer |
966 | char *tabs; /* per location: 1 == tab-stop */ |
972 | char *tabs; /* per location: 1 == tab-stop */ |
967 | screen_t screen; |
973 | screen_t screen; |