… | |
… | |
314 | set_hookname (TTY_ACTIVITY); |
314 | set_hookname (TTY_ACTIVITY); |
315 | set_hookname (REFRESH_BEGIN); |
315 | set_hookname (REFRESH_BEGIN); |
316 | set_hookname (REFRESH_END); |
316 | set_hookname (REFRESH_END); |
317 | set_hookname (KEYBOARD_COMMAND); |
317 | set_hookname (KEYBOARD_COMMAND); |
318 | |
318 | |
|
|
319 | newCONSTSUB (gv_stashpv ("urxvt", 1), "DEFAULT_RSTYLE", newSViv (DEFAULT_RSTYLE)); |
|
|
320 | |
319 | sv_setpv (get_sv ("urxvt::LIBDIR", 1), LIBDIR); |
321 | sv_setpv (get_sv ("urxvt::LIBDIR", 1), LIBDIR); |
320 | } |
322 | } |
321 | |
323 | |
322 | void |
324 | void |
323 | set_should_invoke (int htype, int value) |
325 | set_should_invoke (int htype, int value) |
… | |
… | |
430 | rxvt_term::ncol () |
432 | rxvt_term::ncol () |
431 | CODE: |
433 | CODE: |
432 | RETVAL = THIS->ncol; |
434 | RETVAL = THIS->ncol; |
433 | OUTPUT: |
435 | OUTPUT: |
434 | RETVAL |
436 | RETVAL |
|
|
437 | |
|
|
438 | void |
|
|
439 | rxvt_term::want_refresh () |
|
|
440 | CODE: |
|
|
441 | THIS->want_refresh = 1; |
435 | |
442 | |
436 | void |
443 | void |
437 | rxvt_term::ROW_t (int row_number, SV *new_text = 0, int start_col = 0) |
444 | rxvt_term::ROW_t (int row_number, SV *new_text = 0, int start_col = 0) |
438 | PPCODE: |
445 | PPCODE: |
439 | { |
446 | { |
… | |
… | |
472 | croak ("new_text extends beyond right margin"); |
479 | croak ("new_text extends beyond right margin"); |
473 | } |
480 | } |
474 | |
481 | |
475 | for (int col = start_col; col < start_col + len; col++) |
482 | for (int col = start_col; col < start_col + len; col++) |
476 | { |
483 | { |
477 | l.t [col] = wstr [col]; |
484 | l.t [col] = wstr [col - start_col]; |
478 | l.r [col] = SET_FONT (l.r [col], THIS->fontset [GET_STYLE (l.r [col])]->find_font (l.t [col])); |
485 | l.r [col] = SET_FONT (l.r [col], THIS->fontset [GET_STYLE (l.r [col])]->find_font (l.t [col])); |
479 | } |
486 | } |
|
|
487 | |
|
|
488 | free (wstr); |
480 | } |
489 | } |
481 | } |
490 | } |
482 | |
491 | |
483 | void |
492 | void |
484 | rxvt_term::ROW_r (int row_number, SV *new_rend = 0, int start_col = 0) |
493 | rxvt_term::ROW_r (int row_number, SV *new_rend = 0, int start_col = 0) |
… | |
… | |
511 | if (start_col + len > THIS->ncol) |
520 | if (start_col + len > THIS->ncol) |
512 | croak ("new_rend array extends beyond right margin"); |
521 | croak ("new_rend array extends beyond right margin"); |
513 | |
522 | |
514 | for (int col = start_col; col < start_col + len; col++) |
523 | for (int col = start_col; col < start_col + len; col++) |
515 | { |
524 | { |
516 | rend_t r = SvIV (*av_fetch (av, col, 1)) & ~RS_fontMask; |
525 | rend_t r = SvIV (*av_fetch (av, col - start_col, 1)) & ~RS_fontMask; |
517 | |
526 | |
518 | l.r [col] = SET_FONT (r, THIS->fontset [GET_STYLE (r)]->find_font (l.t [col])); |
527 | l.r [col] = SET_FONT (r, THIS->fontset [GET_STYLE (r)]->find_font (l.t [col])); |
519 | } |
528 | } |
520 | } |
529 | } |
521 | } |
530 | } |