… | |
… | |
214 | *hv_fetch ((HV *)SvRV ((SV *)THIS->perl.self), "_overlay", 8, 0) |
214 | *hv_fetch ((HV *)SvRV ((SV *)THIS->perl.self), "_overlay", 8, 0) |
215 | )); |
215 | )); |
216 | av_push (overlay_av, newSViv ((long)this)); |
216 | av_push (overlay_av, newSViv ((long)this)); |
217 | |
217 | |
218 | THIS->want_refresh = 1; |
218 | THIS->want_refresh = 1; |
|
|
219 | THIS->refresh_check (); |
219 | } |
220 | } |
220 | |
221 | |
221 | void |
222 | void |
222 | overlay::hide () |
223 | overlay::hide () |
223 | { |
224 | { |
… | |
… | |
237 | |
238 | |
238 | SvREFCNT_dec (overlay_av); |
239 | SvREFCNT_dec (overlay_av); |
239 | overlay_av = 0; |
240 | overlay_av = 0; |
240 | |
241 | |
241 | THIS->want_refresh = 1; |
242 | THIS->want_refresh = 1; |
|
|
243 | THIS->refresh_check (); |
242 | } |
244 | } |
243 | |
245 | |
244 | void overlay::swap () |
246 | void overlay::swap () |
245 | { |
247 | { |
246 | int ov_x = max (0, min (MOD (x, THIS->ncol), THIS->ncol - w)); |
248 | int ov_x = max (0, min (MOD (x, THIS->ncol), THIS->ncol - w)); |
… | |
… | |
291 | for (int col = min (AvFILL (av) + 1, w - x - border); col--; ) |
293 | for (int col = min (AvFILL (av) + 1, w - x - border); col--; ) |
292 | this->rend [y][x + col] = SvIV (*av_fetch (av, col, 1)); |
294 | this->rend [y][x + col] = SvIV (*av_fetch (av, col, 1)); |
293 | } |
295 | } |
294 | |
296 | |
295 | THIS->want_refresh = 1; |
297 | THIS->want_refresh = 1; |
|
|
298 | THIS->refresh_check (); |
296 | } |
299 | } |
297 | |
300 | |
298 | ///////////////////////////////////////////////////////////////////////////// |
301 | ///////////////////////////////////////////////////////////////////////////// |
299 | |
302 | |
300 | #define IOM_CLASS "urxvt" |
303 | #define IOM_CLASS "urxvt" |
… | |
… | |
1224 | |
1227 | |
1225 | void |
1228 | void |
1226 | rxvt_term::want_refresh () |
1229 | rxvt_term::want_refresh () |
1227 | CODE: |
1230 | CODE: |
1228 | THIS->want_refresh = 1; |
1231 | THIS->want_refresh = 1; |
|
|
1232 | THIS->refresh_check (); |
1229 | |
1233 | |
1230 | void |
1234 | void |
1231 | rxvt_term::ROW_t (int row_number, SV *new_text = 0, int start_col = 0, int start_ofs = 0, int max_len = MAX_COLS) |
1235 | rxvt_term::ROW_t (int row_number, SV *new_text = 0, int start_col = 0, int start_ofs = 0, int max_len = MAX_COLS) |
1232 | PPCODE: |
1236 | PPCODE: |
1233 | { |
1237 | { |
… | |
… | |
1469 | |
1473 | |
1470 | if (set >= 0) |
1474 | if (set >= 0) |
1471 | { |
1475 | { |
1472 | THIS->set_option (optval, set); |
1476 | THIS->set_option (optval, set); |
1473 | |
1477 | |
1474 | if (THIS->prepare_ev.is_active ()) // avoid doing this before START |
1478 | if (THIS->env_colorfgbg [0]) // avoid doing this before START |
1475 | switch (optval) |
1479 | switch (optval) |
1476 | { |
1480 | { |
1477 | case Opt_skipBuiltinGlyphs: |
1481 | case Opt_skipBuiltinGlyphs: |
1478 | THIS->set_fonts (); |
1482 | THIS->set_fonts (); |
1479 | THIS->scr_remap_chars (); |
1483 | THIS->scr_remap_chars (); |
1480 | THIS->scr_touch (true); |
1484 | THIS->scr_touch (true); |
1481 | THIS->want_refresh = 1; |
1485 | THIS->want_refresh = 1; |
|
|
1486 | THIS->refresh_check (); |
1482 | break; |
1487 | break; |
1483 | |
1488 | |
1484 | case Opt_cursorUnderline: |
1489 | case Opt_cursorUnderline: |
1485 | THIS->want_refresh = 1; |
1490 | THIS->want_refresh = 1; |
|
|
1491 | THIS->refresh_check (); |
1486 | break; |
1492 | break; |
1487 | |
1493 | |
1488 | # case Opt_scrollBar_floating: |
1494 | # case Opt_scrollBar_floating: |
1489 | # case Opt_scrollBar_right: |
1495 | # case Opt_scrollBar_right: |
1490 | # THIS->resize_all_windows (THIS->width, THIS->height, 1); |
1496 | # THIS->resize_all_windows (THIS->width, THIS->height, 1); |
… | |
… | |
1548 | |
1554 | |
1549 | clamp_it (rc.col, 0, THIS->ncol); |
1555 | clamp_it (rc.col, 0, THIS->ncol); |
1550 | clamp_it (rc.row, THIS->top_row, THIS->nrow - 1); |
1556 | clamp_it (rc.row, THIS->top_row, THIS->nrow - 1); |
1551 | |
1557 | |
1552 | if (ix) |
1558 | if (ix) |
|
|
1559 | { |
1553 | THIS->want_refresh = 1; |
1560 | THIS->want_refresh = 1; |
|
|
1561 | THIS->refresh_check (); |
|
|
1562 | } |
1554 | } |
1563 | } |
1555 | } |
1564 | } |
1556 | |
1565 | |
1557 | char |
1566 | char |
1558 | rxvt_term::cur_charset () |
1567 | rxvt_term::cur_charset () |