… | |
… | |
572 | * Change the colour for following text |
572 | * Change the colour for following text |
573 | */ |
573 | */ |
574 | void |
574 | void |
575 | rxvt_term::scr_color (unsigned int color, int fgbg) |
575 | rxvt_term::scr_color (unsigned int color, int fgbg) |
576 | { |
576 | { |
577 | if (color > maxTermCOLOR) |
577 | if (!IN_RANGE_INC (color, minCOLOR, maxTermCOLOR)) |
578 | color = fgbg; |
578 | color = fgbg; |
579 | |
579 | |
580 | if (fgbg == Color_fg) |
580 | if (fgbg == Color_fg) |
581 | rstyle = SET_FGCOLOR (rstyle, color); |
581 | rstyle = SET_FGCOLOR (rstyle, color); |
582 | else |
582 | else |
… | |
… | |
2381 | /* |
2381 | /* |
2382 | * H: cleanup selection |
2382 | * H: cleanup selection |
2383 | */ |
2383 | */ |
2384 | scr_reverse_selection (); |
2384 | scr_reverse_selection (); |
2385 | |
2385 | |
2386 | if (refresh_type & SMOOTH_REFRESH) |
|
|
2387 | XFlush (display->display); |
|
|
2388 | |
|
|
2389 | num_scr = 0; |
2386 | num_scr = 0; |
2390 | num_scr_allow = 1; |
2387 | num_scr_allow = 1; |
2391 | } |
2388 | } |
2392 | |
2389 | |
2393 | void |
2390 | void |
… | |
… | |
2498 | row = -view_start; |
2495 | row = -view_start; |
2499 | } |
2496 | } |
2500 | |
2497 | |
2501 | for (; row < min (end_row, view_end); row++, col = 0) |
2498 | for (; row < min (end_row, view_end); row++, col = 0) |
2502 | for (rend_t *srp = ROW(row).r; col < ncol; col++) |
2499 | for (rend_t *srp = ROW(row).r; col < ncol; col++) |
2503 | srp[col] ^= RS_RVid; |
2500 | srp[col] ^= rstyle; |
2504 | |
2501 | |
2505 | if (row == end_row) |
2502 | if (row == end_row) |
2506 | for (rend_t *srp = ROW(row).r; col < end_col; col++) |
2503 | for (rend_t *srp = ROW(row).r; col < end_col; col++) |
2507 | srp[col] ^= RS_RVid; |
2504 | srp[col] ^= rstyle; |
2508 | } |
2505 | } |
2509 | |
2506 | |
2510 | /* ------------------------------------------------------------------------- */ |
2507 | /* ------------------------------------------------------------------------- */ |
2511 | void |
2508 | void |
2512 | rxvt_term::scr_reverse_selection () |
2509 | rxvt_term::scr_reverse_selection () |