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