… | |
… | |
29 | #include "../config.h" |
29 | #include "../config.h" |
30 | |
30 | |
31 | #include <cstddef> |
31 | #include <cstddef> |
32 | #include <cstdarg> |
32 | #include <cstdarg> |
33 | |
33 | |
|
|
34 | #include "iom.h" |
34 | #include "rxvt.h" |
35 | #include "rxvt.h" |
35 | #include "iom.h" |
36 | #include "keyboard.h" |
36 | #include "rxvtutil.h" |
37 | #include "rxvtutil.h" |
37 | #include "rxvtperl.h" |
38 | #include "rxvtperl.h" |
38 | |
39 | |
39 | #include "perlxsi.c" |
40 | #include "perlxsi.c" |
|
|
41 | |
|
|
42 | #if defined(HAVE_SCROLLBARS) || defined(MENUBAR) |
|
|
43 | # define GRAB_CURSOR THIS->leftptr_cursor |
|
|
44 | #else |
|
|
45 | # define GRAB_CURSOR None |
|
|
46 | #endif |
40 | |
47 | |
41 | #undef LINENO |
48 | #undef LINENO |
42 | #define LINENO(n) MOD (THIS->term_start + int(n), THIS->total_rows) |
49 | #define LINENO(n) MOD (THIS->term_start + int(n), THIS->total_rows) |
43 | #undef ROW |
50 | #undef ROW |
44 | #define ROW(n) THIS->row_buf [LINENO (n)] |
51 | #define ROW(n) THIS->row_buf [LINENO (n)] |
45 | |
52 | |
46 | ///////////////////////////////////////////////////////////////////////////// |
53 | ///////////////////////////////////////////////////////////////////////////// |
|
|
54 | |
|
|
55 | static SV * |
|
|
56 | taint (SV *sv) |
|
|
57 | { |
|
|
58 | SvTAINT (sv); |
|
|
59 | return sv; |
|
|
60 | } |
|
|
61 | |
|
|
62 | static SV * |
|
|
63 | taint_if (SV *sv, SV *src) |
|
|
64 | { |
|
|
65 | if (SvTAINTED (src)) |
|
|
66 | SvTAINT (sv); |
|
|
67 | |
|
|
68 | return sv; |
|
|
69 | } |
47 | |
70 | |
48 | static wchar_t * |
71 | static wchar_t * |
49 | sv2wcs (SV *sv) |
72 | sv2wcs (SV *sv) |
50 | { |
73 | { |
51 | STRLEN len; |
74 | STRLEN len; |
… | |
… | |
390 | { |
413 | { |
391 | if (!perl) |
414 | if (!perl) |
392 | { |
415 | { |
393 | char *argv[] = { |
416 | char *argv[] = { |
394 | "", |
417 | "", |
|
|
418 | "-T", |
395 | "-edo '" LIBDIR "/urxvt.pm' or ($@ and die $@) or exit 1", |
419 | "-edo '" LIBDIR "/urxvt.pm' or ($@ and die $@) or exit 1", |
396 | }; |
420 | }; |
397 | |
421 | |
398 | perl = perl_alloc (); |
422 | perl = perl_alloc (); |
399 | perl_construct (perl); |
423 | perl_construct (perl); |
400 | |
424 | |
401 | if (perl_parse (perl, xs_init, 2, argv, (char **)NULL) |
425 | if (perl_parse (perl, xs_init, 3, argv, (char **)NULL) |
402 | || perl_run (perl)) |
426 | || perl_run (perl)) |
403 | { |
427 | { |
404 | rxvt_warn ("unable to initialize perl-interpreter, continuing without.\n"); |
428 | rxvt_warn ("unable to initialize perl-interpreter, continuing without.\n"); |
405 | |
429 | |
406 | perl_destruct (perl); |
430 | perl_destruct (perl); |
407 | perl_free (perl); |
431 | perl_free (perl); |
408 | perl = 0; |
432 | perl = 0; |
409 | } |
433 | } |
|
|
434 | } |
|
|
435 | } |
|
|
436 | |
|
|
437 | static void |
|
|
438 | ungrab (rxvt_term *THIS) |
|
|
439 | { |
|
|
440 | if (THIS->perl.grabtime) |
|
|
441 | { |
|
|
442 | XUngrabKeyboard (THIS->display->display, THIS->perl.grabtime); |
|
|
443 | XUngrabPointer (THIS->display->display, THIS->perl.grabtime); |
|
|
444 | THIS->perl.grabtime = 0; |
410 | } |
445 | } |
411 | } |
446 | } |
412 | |
447 | |
413 | bool |
448 | bool |
414 | rxvt_perl_interp::invoke (rxvt_term *term, hook_type htype, ...) |
449 | rxvt_perl_interp::invoke (rxvt_term *term, hook_type htype, ...) |
… | |
… | |
425 | return false; // perl not initialized for this instance |
460 | return false; // perl not initialized for this instance |
426 | else if (htype == HOOK_DESTROY) |
461 | else if (htype == HOOK_DESTROY) |
427 | { |
462 | { |
428 | // handled later |
463 | // handled later |
429 | } |
464 | } |
430 | else if (htype == HOOK_REFRESH_BEGIN || htype == HOOK_REFRESH_END) |
465 | else |
431 | { |
466 | { |
432 | HV *hv = (HV *)SvRV (*hv_fetch ((HV *)SvRV ((SV *)term->perl.self), "_overlay", 8, 0)); |
467 | if (htype == HOOK_REFRESH_BEGIN || htype == HOOK_REFRESH_END) |
433 | |
|
|
434 | if (HvKEYS (hv)) |
|
|
435 | { |
468 | { |
|
|
469 | HV *hv = (HV *)SvRV (*hv_fetch ((HV *)SvRV ((SV *)term->perl.self), "_overlay", 8, 0)); |
|
|
470 | |
|
|
471 | if (HvKEYS (hv)) |
|
|
472 | { |
436 | hv_iterinit (hv); |
473 | hv_iterinit (hv); |
437 | |
474 | |
438 | while (HE *he = hv_iternext (hv)) |
475 | while (HE *he = hv_iternext (hv)) |
439 | ((overlay *)SvIV (hv_iterval (hv, he)))->swap (); |
476 | ((overlay *)SvIV (hv_iterval (hv, he)))->swap (); |
|
|
477 | } |
|
|
478 | |
440 | } |
479 | } |
|
|
480 | |
|
|
481 | if (!should_invoke [htype]) |
|
|
482 | return false; |
441 | } |
483 | } |
442 | else if (!should_invoke [htype]) |
|
|
443 | return false; |
|
|
444 | |
484 | |
445 | dSP; |
485 | dSP; |
446 | va_list ap; |
486 | va_list ap; |
447 | |
487 | |
448 | va_start (ap, htype); |
488 | va_start (ap, htype); |
… | |
… | |
467 | case DT_LONG: |
507 | case DT_LONG: |
468 | XPUSHs (sv_2mortal (newSViv (va_arg (ap, long)))); |
508 | XPUSHs (sv_2mortal (newSViv (va_arg (ap, long)))); |
469 | break; |
509 | break; |
470 | |
510 | |
471 | case DT_STR: |
511 | case DT_STR: |
472 | XPUSHs (sv_2mortal (newSVpv (va_arg (ap, char *), 0))); |
512 | XPUSHs (taint (sv_2mortal (newSVpv (va_arg (ap, char *), 0)))); |
473 | break; |
513 | break; |
474 | |
514 | |
475 | case DT_STR_LEN: |
515 | case DT_STR_LEN: |
476 | { |
516 | { |
477 | char *str = va_arg (ap, char *); |
517 | char *str = va_arg (ap, char *); |
478 | int len = va_arg (ap, int); |
518 | int len = va_arg (ap, int); |
479 | |
519 | |
480 | XPUSHs (sv_2mortal (newSVpvn (str, len))); |
520 | XPUSHs (taint (sv_2mortal (newSVpvn (str, len)))); |
481 | } |
521 | } |
482 | break; |
522 | break; |
483 | |
523 | |
484 | case DT_WCS_LEN: |
524 | case DT_WCS_LEN: |
485 | { |
525 | { |
486 | wchar_t *wstr = va_arg (ap, wchar_t *); |
526 | wchar_t *wstr = va_arg (ap, wchar_t *); |
487 | int wlen = va_arg (ap, int); |
527 | int wlen = va_arg (ap, int); |
488 | |
528 | |
489 | XPUSHs (sv_2mortal (wcs2sv (wstr, wlen))); |
529 | XPUSHs (taint (sv_2mortal (wcs2sv (wstr, wlen)))); |
490 | } |
530 | } |
491 | break; |
531 | break; |
492 | |
532 | |
493 | case DT_XEVENT: |
533 | case DT_XEVENT: |
494 | { |
534 | { |
… | |
… | |
559 | PUTBACK; |
599 | PUTBACK; |
560 | FREETMPS; |
600 | FREETMPS; |
561 | LEAVE; |
601 | LEAVE; |
562 | |
602 | |
563 | if (SvTRUE (ERRSV)) |
603 | if (SvTRUE (ERRSV)) |
|
|
604 | { |
564 | rxvt_warn ("perl hook %d evaluation error: %s", htype, SvPV_nolen (ERRSV)); |
605 | rxvt_warn ("perl hook %d evaluation error: %s", htype, SvPV_nolen (ERRSV)); |
|
|
606 | ungrab (term); // better lose the grab than the session |
|
|
607 | } |
565 | |
608 | |
566 | if (htype == HOOK_DESTROY) |
609 | if (htype == HOOK_DESTROY) |
567 | { |
610 | { |
568 | clearSVptr ((SV *)term->perl.self); |
611 | clearSVptr ((SV *)term->perl.self); |
569 | SvREFCNT_dec ((SV *)term->perl.self); |
612 | SvREFCNT_dec ((SV *)term->perl.self); |
… | |
… | |
623 | export_const_iv (Button2Mask); |
666 | export_const_iv (Button2Mask); |
624 | export_const_iv (Button3Mask); |
667 | export_const_iv (Button3Mask); |
625 | export_const_iv (Button4Mask); |
668 | export_const_iv (Button4Mask); |
626 | export_const_iv (Button5Mask); |
669 | export_const_iv (Button5Mask); |
627 | export_const_iv (AnyModifier); |
670 | export_const_iv (AnyModifier); |
|
|
671 | |
|
|
672 | export_const_iv (EVENT_NONE); |
|
|
673 | export_const_iv (EVENT_READ); |
|
|
674 | export_const_iv (EVENT_WRITE); |
628 | } |
675 | } |
629 | |
676 | |
630 | SV * |
677 | SV * |
631 | new (...) |
678 | new (...) |
632 | CODE: |
679 | CODE: |
… | |
… | |
670 | void |
717 | void |
671 | fatal (const char *msg) |
718 | fatal (const char *msg) |
672 | CODE: |
719 | CODE: |
673 | rxvt_fatal ("%s", msg); |
720 | rxvt_fatal ("%s", msg); |
674 | |
721 | |
|
|
722 | SV * |
|
|
723 | untaint (SV *sv) |
|
|
724 | CODE: |
|
|
725 | RETVAL = newSVsv (sv); |
|
|
726 | SvTAINTED_off (RETVAL); |
|
|
727 | OUTPUT: |
|
|
728 | RETVAL |
|
|
729 | |
|
|
730 | bool |
|
|
731 | safe () |
|
|
732 | CODE: |
|
|
733 | RETVAL = !rxvt_tainted (); |
|
|
734 | OUTPUT: |
|
|
735 | RETVAL |
|
|
736 | |
675 | NV |
737 | NV |
676 | NOW () |
738 | NOW () |
677 | CODE: |
739 | CODE: |
678 | RETVAL = NOW; |
740 | RETVAL = NOW; |
679 | OUTPUT: |
741 | OUTPUT: |
… | |
… | |
735 | void |
797 | void |
736 | rxvt_term::grab_button (int button, U32 modifiers) |
798 | rxvt_term::grab_button (int button, U32 modifiers) |
737 | CODE: |
799 | CODE: |
738 | XGrabButton (THIS->display->display, button, modifiers, THIS->vt, 1, |
800 | XGrabButton (THIS->display->display, button, modifiers, THIS->vt, 1, |
739 | ButtonPressMask | ButtonReleaseMask | EnterWindowMask | LeaveWindowMask | PointerMotionMask, |
801 | ButtonPressMask | ButtonReleaseMask | EnterWindowMask | LeaveWindowMask | PointerMotionMask, |
740 | GrabModeSync, GrabModeSync, None, None); |
802 | GrabModeSync, GrabModeSync, None, GRAB_CURSOR); |
741 | |
803 | |
742 | bool |
804 | bool |
743 | rxvt_term::grab (U32 eventtime, int sync = 0) |
805 | rxvt_term::grab (U32 eventtime, int sync = 0) |
744 | CODE: |
806 | CODE: |
745 | { |
807 | { |
… | |
… | |
747 | |
809 | |
748 | THIS->perl.grabtime = 0; |
810 | THIS->perl.grabtime = 0; |
749 | |
811 | |
750 | if (!XGrabPointer (THIS->display->display, THIS->vt, 0, |
812 | if (!XGrabPointer (THIS->display->display, THIS->vt, 0, |
751 | ButtonPressMask | ButtonReleaseMask | EnterWindowMask | LeaveWindowMask | PointerMotionMask, |
813 | ButtonPressMask | ButtonReleaseMask | EnterWindowMask | LeaveWindowMask | PointerMotionMask, |
752 | mode, mode, None, None, eventtime)) |
814 | mode, mode, None, GRAB_CURSOR, eventtime)) |
753 | if (!XGrabKeyboard (THIS->display->display, THIS->vt, 0, mode, mode, eventtime)) |
815 | if (!XGrabKeyboard (THIS->display->display, THIS->vt, 0, mode, mode, eventtime)) |
754 | THIS->perl.grabtime = eventtime; |
816 | THIS->perl.grabtime = eventtime; |
755 | else |
817 | else |
756 | XUngrabPointer (THIS->display->display, eventtime); |
818 | XUngrabPointer (THIS->display->display, eventtime); |
757 | |
819 | |
… | |
… | |
759 | } |
821 | } |
760 | OUTPUT: |
822 | OUTPUT: |
761 | RETVAL |
823 | RETVAL |
762 | |
824 | |
763 | void |
825 | void |
764 | rxvt_term::allow_events_async (U32 eventtime = THIS->perl.grabtime) |
826 | rxvt_term::allow_events_async () |
765 | CODE: |
827 | CODE: |
766 | XAllowEvents (THIS->display->display, AsyncBoth, eventtime); |
828 | XAllowEvents (THIS->display->display, AsyncBoth, THIS->perl.grabtime); |
767 | |
829 | |
768 | void |
830 | void |
769 | rxvt_term::allow_events_sync (U32 eventtime = THIS->perl.grabtime) |
831 | rxvt_term::allow_events_sync () |
770 | CODE: |
832 | CODE: |
771 | XAllowEvents (THIS->display->display, SyncBoth, eventtime); |
833 | XAllowEvents (THIS->display->display, SyncBoth, THIS->perl.grabtime); |
772 | |
834 | |
773 | void |
835 | void |
774 | rxvt_term::allow_events_replay (U32 eventtime = THIS->perl.grabtime) |
836 | rxvt_term::allow_events_replay () |
775 | CODE: |
837 | CODE: |
776 | XAllowEvents (THIS->display->display, ReplayPointer, eventtime); |
838 | XAllowEvents (THIS->display->display, ReplayPointer, THIS->perl.grabtime); |
777 | XAllowEvents (THIS->display->display, ReplayKeyboard, eventtime); |
839 | XAllowEvents (THIS->display->display, ReplayKeyboard, THIS->perl.grabtime); |
778 | |
840 | |
779 | void |
841 | void |
780 | rxvt_term::ungrab (U32 eventtime = THIS->perl.grabtime) |
842 | rxvt_term::ungrab () |
781 | CODE: |
843 | CODE: |
782 | THIS->perl.grabtime = 0; |
844 | ungrab (THIS); |
783 | XUngrabKeyboard (THIS->display->display, eventtime); |
|
|
784 | XUngrabPointer (THIS->display->display, eventtime); |
|
|
785 | |
845 | |
786 | int |
846 | int |
787 | rxvt_term::strwidth (SV *str) |
847 | rxvt_term::strwidth (SV *str) |
788 | CODE: |
848 | CODE: |
789 | { |
849 | { |
… | |
… | |
808 | char *mbstr = rxvt_wcstombs (wstr); |
868 | char *mbstr = rxvt_wcstombs (wstr); |
809 | rxvt_pop_locale (); |
869 | rxvt_pop_locale (); |
810 | |
870 | |
811 | free (wstr); |
871 | free (wstr); |
812 | |
872 | |
813 | RETVAL = newSVpv (mbstr, 0); |
873 | RETVAL = taint_if (newSVpv (mbstr, 0), str); |
814 | free (mbstr); |
874 | free (mbstr); |
815 | } |
875 | } |
816 | OUTPUT: |
876 | OUTPUT: |
817 | RETVAL |
877 | RETVAL |
818 | |
878 | |
… | |
… | |
825 | |
885 | |
826 | rxvt_push_locale (THIS->locale); |
886 | rxvt_push_locale (THIS->locale); |
827 | wchar_t *wstr = rxvt_mbstowcs (data, len); |
887 | wchar_t *wstr = rxvt_mbstowcs (data, len); |
828 | rxvt_pop_locale (); |
888 | rxvt_pop_locale (); |
829 | |
889 | |
830 | RETVAL = wcs2sv (wstr); |
890 | RETVAL = taint_if (wcs2sv (wstr), octets); |
831 | free (wstr); |
891 | free (wstr); |
832 | } |
892 | } |
833 | OUTPUT: |
893 | OUTPUT: |
834 | RETVAL |
894 | RETVAL |
835 | |
895 | |
… | |
… | |
882 | case 2: RETVAL = THIS->ModNumLockMask; break; |
942 | case 2: RETVAL = THIS->ModNumLockMask; break; |
883 | } |
943 | } |
884 | OUTPUT: |
944 | OUTPUT: |
885 | RETVAL |
945 | RETVAL |
886 | |
946 | |
|
|
947 | char * |
|
|
948 | rxvt_term::display_id () |
|
|
949 | ALIAS: |
|
|
950 | display_id = 0 |
|
|
951 | locale = 1 |
|
|
952 | CODE: |
|
|
953 | switch (ix) |
|
|
954 | { |
|
|
955 | case 0: RETVAL = THIS->display->id; break; |
|
|
956 | case 1: RETVAL = THIS->locale; break; |
|
|
957 | } |
|
|
958 | OUTPUT: |
|
|
959 | RETVAL |
|
|
960 | |
|
|
961 | int |
|
|
962 | rxvt_term::pty_ev_events (int events = EVENT_UNDEF) |
|
|
963 | CODE: |
|
|
964 | RETVAL = THIS->pty_ev.events; |
|
|
965 | if (events != EVENT_UNDEF) |
|
|
966 | THIS->pty_ev.set (events); |
|
|
967 | OUTPUT: |
|
|
968 | RETVAL |
|
|
969 | |
887 | U32 |
970 | U32 |
888 | rxvt_term::parent () |
971 | rxvt_term::parent () |
889 | CODE: |
972 | CODE: |
890 | RETVAL = (U32)THIS->parent [0]; |
973 | RETVAL = (U32)THIS->parent [0]; |
891 | OUTPUT: |
974 | OUTPUT: |
… | |
… | |
942 | wchar_t *wstr = new wchar_t [THIS->ncol]; |
1025 | wchar_t *wstr = new wchar_t [THIS->ncol]; |
943 | |
1026 | |
944 | for (int col = 0; col < THIS->ncol; col++) |
1027 | for (int col = 0; col < THIS->ncol; col++) |
945 | wstr [col] = l.t [col]; |
1028 | wstr [col] = l.t [col]; |
946 | |
1029 | |
947 | XPUSHs (sv_2mortal (wcs2sv (wstr, THIS->ncol))); |
1030 | XPUSHs (taint (sv_2mortal (wcs2sv (wstr, THIS->ncol)))); |
948 | |
1031 | |
949 | delete [] wstr; |
1032 | delete [] wstr; |
950 | } |
1033 | } |
951 | |
1034 | |
952 | if (new_text) |
1035 | if (new_text) |
… | |
… | |
1073 | else |
1156 | else |
1074 | *r++ = *s; |
1157 | *r++ = *s; |
1075 | |
1158 | |
1076 | rxvt_pop_locale (); |
1159 | rxvt_pop_locale (); |
1077 | |
1160 | |
1078 | RETVAL = wcs2sv (rstr, r - rstr); |
1161 | RETVAL = taint_if (wcs2sv (rstr, r - rstr), string); |
1079 | |
1162 | |
1080 | delete [] rstr; |
1163 | delete [] rstr; |
1081 | } |
1164 | } |
1082 | OUTPUT: |
1165 | OUTPUT: |
1083 | RETVAL |
1166 | RETVAL |
… | |
… | |
1109 | else if (IS_COMPOSE (*s)) |
1192 | else if (IS_COMPOSE (*s)) |
1110 | r += rxvt_composite.expand (*s, r); |
1193 | r += rxvt_composite.expand (*s, r); |
1111 | else |
1194 | else |
1112 | *r++ = *s; |
1195 | *r++ = *s; |
1113 | |
1196 | |
1114 | RETVAL = wcs2sv (rstr, r - rstr); |
1197 | RETVAL = taint_if (wcs2sv (rstr, r - rstr), text); |
1115 | |
1198 | |
1116 | delete [] rstr; |
1199 | delete [] rstr; |
1117 | } |
1200 | } |
1118 | OUTPUT: |
1201 | OUTPUT: |
1119 | RETVAL |
1202 | RETVAL |
… | |
… | |
1141 | |
1224 | |
1142 | if (!IN_RANGE_EXC (index, 0, NUM_RESOURCES)) |
1225 | if (!IN_RANGE_EXC (index, 0, NUM_RESOURCES)) |
1143 | croak ("requested out-of-bound resource %s+%d,", name, index - rs->value); |
1226 | croak ("requested out-of-bound resource %s+%d,", name, index - rs->value); |
1144 | |
1227 | |
1145 | if (GIMME_V != G_VOID) |
1228 | if (GIMME_V != G_VOID) |
1146 | XPUSHs (THIS->rs [index] ? sv_2mortal (newSVpv (THIS->rs [index], 0)) : &PL_sv_undef); |
1229 | XPUSHs (THIS->rs [index] ? sv_2mortal (taint (newSVpv (THIS->rs [index], 0))) : &PL_sv_undef); |
1147 | |
1230 | |
1148 | if (newval) |
1231 | if (newval) |
1149 | { |
1232 | { |
1150 | if (SvOK (newval)) |
1233 | if (SvOK (newval)) |
1151 | { |
1234 | { |
… | |
… | |
1192 | } |
1275 | } |
1193 | } |
1276 | } |
1194 | OUTPUT: |
1277 | OUTPUT: |
1195 | RETVAL |
1278 | RETVAL |
1196 | |
1279 | |
|
|
1280 | bool |
|
|
1281 | rxvt_term::parse_keysym (char *keysym, char *str) |
|
|
1282 | CODE: |
|
|
1283 | RETVAL = 0 < THIS->parse_keysym (keysym, str); |
|
|
1284 | THIS->keyboard->register_done (); |
|
|
1285 | OUTPUT: |
|
|
1286 | RETVAL |
|
|
1287 | |
1197 | void |
1288 | void |
1198 | rxvt_term::cur (...) |
1289 | rxvt_term::screen_cur (...) |
1199 | PROTOTYPE: $;$$ |
1290 | PROTOTYPE: $;$$ |
1200 | ALIAS: |
1291 | ALIAS: |
1201 | screen_cur = 0 |
1292 | screen_cur = 0 |
1202 | selection_beg = 1 |
1293 | selection_beg = 1 |
1203 | selection_end = 2 |
1294 | selection_end = 2 |
… | |
… | |
1232 | void |
1323 | void |
1233 | rxvt_term::selection (SV *newtext = 0) |
1324 | rxvt_term::selection (SV *newtext = 0) |
1234 | PPCODE: |
1325 | PPCODE: |
1235 | { |
1326 | { |
1236 | if (GIMME_V != G_VOID) |
1327 | if (GIMME_V != G_VOID) |
|
|
1328 | XPUSHs (THIS->selection.text |
1237 | XPUSHs (sv_2mortal (wcs2sv (THIS->selection.text, THIS->selection.len))); |
1329 | ? taint (sv_2mortal (wcs2sv (THIS->selection.text, THIS->selection.len))) |
|
|
1330 | : &PL_sv_undef); |
1238 | |
1331 | |
1239 | if (newtext) |
1332 | if (newtext) |
1240 | { |
1333 | { |
1241 | free (THIS->selection.text); |
1334 | free (THIS->selection.text); |
1242 | |
1335 | |
1243 | THIS->selection.text = sv2wcs (newtext); |
1336 | THIS->selection.text = sv2wcs (newtext); |
1244 | THIS->selection.len = wcslen (THIS->selection.text); |
1337 | THIS->selection.len = wcslen (THIS->selection.text); |
1245 | } |
1338 | } |
1246 | } |
1339 | } |
|
|
1340 | |
|
|
1341 | void |
|
|
1342 | rxvt_term::scr_bell () |
1247 | |
1343 | |
1248 | void |
1344 | void |
1249 | rxvt_term::scr_add_lines (SV *string) |
1345 | rxvt_term::scr_add_lines (SV *string) |
1250 | CODE: |
1346 | CODE: |
1251 | { |
1347 | { |