… | |
… | |
37 | |
37 | |
38 | @@RXVT_NAME@@ -pe <extensionname> |
38 | @@RXVT_NAME@@ -pe <extensionname> |
39 | |
39 | |
40 | =over 4 |
40 | =over 4 |
41 | |
41 | |
42 | =item selection |
42 | =item selection (enabled by default) |
43 | |
43 | |
44 | Intelligent selection. This extension tries to be more intelligent when |
44 | Intelligent selection. This extension tries to be more intelligent when |
45 | the user extends selections (double-click). Right now, it tries to select |
45 | the user extends selections (double-click). Right now, it tries to select |
46 | urls and complete shell-quoted arguments, which is very convenient, too, |
46 | urls and complete shell-quoted arguments, which is very convenient, too, |
47 | if your F<ls> supports C<--quoting-style=shell>. |
47 | if your F<ls> supports C<--quoting-style=shell>. |
… | |
… | |
55 | Rot-13 the selection when activated. Used via keyboard trigger: |
55 | Rot-13 the selection when activated. Used via keyboard trigger: |
56 | |
56 | |
57 | URxvt.keysym.C-M-r: perl:selection:rot13 |
57 | URxvt.keysym.C-M-r: perl:selection:rot13 |
58 | |
58 | |
59 | =back |
59 | =back |
|
|
60 | |
|
|
61 | =item option-popup (enabled by default) |
|
|
62 | |
|
|
63 | Binds a popup menu to Ctrl-Button2 that lets you toggle (some) options at |
|
|
64 | runtime. |
|
|
65 | |
|
|
66 | =item selection-popup (enabled by default) |
|
|
67 | |
|
|
68 | Binds a popup menu to Ctrl-Button3 that lets you convert the selection |
|
|
69 | text into various other formats/action. |
60 | |
70 | |
61 | =item digital-clock |
71 | =item digital-clock |
62 | |
72 | |
63 | Displays a digital clock using the built-in overlay. |
73 | Displays a digital clock using the built-in overlay. |
64 | |
74 | |
… | |
… | |
195 | |
205 | |
196 | It is called before lines are scrolled out (so rows 0 .. min ($lines - 1, |
206 | It is called before lines are scrolled out (so rows 0 .. min ($lines - 1, |
197 | $nrow - 1) represent the lines to be scrolled out). C<$saved> is the total |
207 | $nrow - 1) represent the lines to be scrolled out). C<$saved> is the total |
198 | number of lines that will be in the scrollback buffer. |
208 | number of lines that will be in the scrollback buffer. |
199 | |
209 | |
200 | =item on_tty_activity $term *NYI* |
|
|
201 | |
|
|
202 | Called whenever the program(s) running in the urxvt window send output. |
|
|
203 | |
|
|
204 | =item on_osc_seq $term, $string |
210 | =item on_osc_seq $term, $string |
205 | |
211 | |
206 | Called whenever the B<ESC ] 777 ; string ST> command sequence (OSC = |
212 | Called whenever the B<ESC ] 777 ; string ST> command sequence (OSC = |
207 | operating system command) is processed. Cursor position and other state |
213 | operating system command) is processed. Cursor position and other state |
208 | information is up-to-date when this happens. For interoperability, the |
214 | information is up-to-date when this happens. For interoperability, the |
… | |
… | |
327 | that calls this function. |
333 | that calls this function. |
328 | |
334 | |
329 | Using this function has the advantage that its output ends up in the |
335 | Using this function has the advantage that its output ends up in the |
330 | correct place, e.g. on stderr of the connecting urxvtc client. |
336 | correct place, e.g. on stderr of the connecting urxvtc client. |
331 | |
337 | |
|
|
338 | =item $is_safe = urxvt::safe |
|
|
339 | |
|
|
340 | Returns true when it is safe to do potentially unsafe things, such as |
|
|
341 | evaluating perl code specified by the user. This is true when urxvt was |
|
|
342 | started setuid or setgid. |
|
|
343 | |
332 | =item $time = urxvt::NOW |
344 | =item $time = urxvt::NOW |
333 | |
345 | |
334 | Returns the "current time" (as per the event loop). |
346 | Returns the "current time" (as per the event loop). |
335 | |
347 | |
336 | =item urxvt::CurrentTime |
348 | =item urxvt::CurrentTime |
337 | |
349 | |
338 | =item urxvt::ShiftMask, LockMask, ControlMask, Mod1Mask, Mod2Mask, |
350 | =item urxvt::ShiftMask, LockMask, ControlMask, Mod1Mask, Mod2Mask, |
339 | Mod3Mask, Mod4Mask, Mod5Mask, Button1Mask, Button2Mask, Button3Mask, |
351 | Mod3Mask, Mod4Mask, Mod5Mask, Button1Mask, Button2Mask, Button3Mask, |
340 | Button4Mask, Button5Mask, AnyModifier |
352 | Button4Mask, Button5Mask, AnyModifier |
341 | |
353 | |
342 | Various constants for use in X events. |
354 | Various constants for use in X calls and event processing. |
343 | |
355 | |
344 | =back |
356 | =back |
345 | |
357 | |
346 | =head2 RENDITION |
358 | =head2 RENDITION |
347 | |
359 | |
… | |
… | |
402 | use utf8; |
414 | use utf8; |
403 | use strict; |
415 | use strict; |
404 | use Scalar::Util (); |
416 | use Scalar::Util (); |
405 | use List::Util (); |
417 | use List::Util (); |
406 | |
418 | |
|
|
419 | our $VERSION = 1; |
407 | our $TERM; |
420 | our $TERM; |
408 | our @HOOKNAME; |
421 | our @HOOKNAME; |
409 | our %OPTION; |
422 | our %OPTION; |
410 | our $LIBDIR; |
423 | our $LIBDIR; |
411 | |
424 | |
… | |
… | |
417 | my $msg = join "", @_; |
430 | my $msg = join "", @_; |
418 | $msg .= "\n" |
431 | $msg .= "\n" |
419 | unless $msg =~ /\n$/; |
432 | unless $msg =~ /\n$/; |
420 | urxvt::warn ($msg); |
433 | urxvt::warn ($msg); |
421 | }; |
434 | }; |
|
|
435 | |
|
|
436 | delete $ENV{IFS}; |
|
|
437 | delete $ENV{CDPATH}; |
|
|
438 | delete $ENV{BASH_ENV}; |
|
|
439 | $ENV{PATH} = "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin:/opt/sbin"; |
422 | } |
440 | } |
423 | |
441 | |
424 | my @hook_count; |
442 | my @hook_count; |
425 | my $verbosity = $ENV{URXVT_PERL_VERBOSITY}; |
443 | my $verbosity = $ENV{URXVT_PERL_VERBOSITY}; |
426 | |
444 | |
… | |
… | |
459 | verbose 3, "loading extension '$path' into package '$pkg'"; |
477 | verbose 3, "loading extension '$path' into package '$pkg'"; |
460 | |
478 | |
461 | open my $fh, "<:raw", $path |
479 | open my $fh, "<:raw", $path |
462 | or die "$path: $!"; |
480 | or die "$path: $!"; |
463 | |
481 | |
464 | my $source = "package $pkg; use strict; use utf8;\n" |
482 | my $source = untaint "package $pkg; use strict; use utf8;\n" |
465 | . "use base urxvt::term::proxy::;\n" |
483 | . "use base urxvt::term::proxy::;\n" |
466 | . "#line 1 \"$path\"\n{\n" |
484 | . "#line 1 \"$path\"\n{\n" |
467 | . (do { local $/; <$fh> }) |
485 | . (do { local $/; <$fh> }) |
468 | . "\n};\n1"; |
486 | . "\n};\n1"; |
469 | |
487 | |
… | |
… | |
485 | |
503 | |
486 | my %want_ext; |
504 | my %want_ext; |
487 | |
505 | |
488 | for (map { split /,/, $TERM->resource ("perl_ext_$_") } 1, 2) { |
506 | for (map { split /,/, $TERM->resource ("perl_ext_$_") } 1, 2) { |
489 | if ($_ eq "default") { |
507 | if ($_ eq "default") { |
490 | $want_ext{$_}++ for qw(selection option-popup); |
508 | $want_ext{$_}++ for qw(selection option-popup selection-popup); |
491 | } elsif (/^-(.*)$/) { |
509 | } elsif (/^-(.*)$/) { |
492 | delete $want_ext{$1}; |
510 | delete $want_ext{$1}; |
493 | } else { |
511 | } else { |
494 | $want_ext{$_}++; |
512 | $want_ext{$_}++; |
495 | } |
513 | } |
… | |
… | |
502 | register_package extension_package $files[0]; |
520 | register_package extension_package $files[0]; |
503 | } else { |
521 | } else { |
504 | warn "perl extension '$ext' not found in perl library search path\n"; |
522 | warn "perl extension '$ext' not found in perl library search path\n"; |
505 | } |
523 | } |
506 | } |
524 | } |
|
|
525 | |
|
|
526 | eval "#line 1 \"--perl-eval resource/argument\"\n" . $TERM->resource ("perl_eval"); |
|
|
527 | warn $@ if $@; |
507 | } |
528 | } |
508 | |
529 | |
509 | $retval = undef; |
530 | $retval = undef; |
510 | |
531 | |
511 | if (my $cb = $TERM->{_hook}[$htype]) { |
532 | if (my $cb = $TERM->{_hook}[$htype]) { |
… | |
… | |
523 | $proxy |
544 | $proxy |
524 | }, |
545 | }, |
525 | @_, |
546 | @_, |
526 | ) and last; |
547 | ) and last; |
527 | }; |
548 | }; |
528 | warn $@ if $@;#d# |
549 | if ($@) { |
|
|
550 | $TERM->ungrab; # better to lose the grab than the session |
|
|
551 | warn $@; |
|
|
552 | } |
529 | } |
553 | } |
530 | } |
554 | } |
531 | |
555 | |
532 | if ($htype == 1) { # DESTROY |
556 | if ($htype == 1) { # DESTROY |
533 | # remove hooks if unused |
557 | # remove hooks if unused |
… | |
… | |
546 | } |
570 | } |
547 | |
571 | |
548 | $retval |
572 | $retval |
549 | } |
573 | } |
550 | |
574 | |
|
|
575 | # urxvt::term::proxy |
|
|
576 | |
551 | sub urxvt::term::proxy::AUTOLOAD { |
577 | sub urxvt::term::proxy::AUTOLOAD { |
552 | $urxvt::term::proxy::AUTOLOAD =~ /:([^:]+)$/ |
578 | $urxvt::term::proxy::AUTOLOAD =~ /:([^:]+)$/ |
553 | or die "FATAL: \$AUTOLOAD '$urxvt::term::proxy::AUTOLOAD' unparsable"; |
579 | or die "FATAL: \$AUTOLOAD '$urxvt::term::proxy::AUTOLOAD' unparsable"; |
554 | |
580 | |
555 | eval qq{ |
581 | eval qq{ |
… | |
… | |
561 | } or die "FATAL: unable to compile method forwarder: $@"; |
587 | } or die "FATAL: unable to compile method forwarder: $@"; |
562 | |
588 | |
563 | goto &$urxvt::term::proxy::AUTOLOAD; |
589 | goto &$urxvt::term::proxy::AUTOLOAD; |
564 | } |
590 | } |
565 | |
591 | |
|
|
592 | sub urxvt::term::proxy::DESTROY { |
|
|
593 | # nop |
|
|
594 | } |
|
|
595 | |
|
|
596 | # urxvt::destroy_hook |
|
|
597 | |
566 | sub urxvt::destroy_hook::DESTROY { |
598 | sub urxvt::destroy_hook::DESTROY { |
567 | ${$_[0]}->(); |
599 | ${$_[0]}->(); |
568 | } |
600 | } |
569 | |
601 | |
570 | sub urxvt::destroy_hook(&) { |
602 | sub urxvt::destroy_hook(&) { |
571 | bless \shift, urxvt::destroy_hook:: |
603 | bless \shift, urxvt::destroy_hook:: |
572 | } |
604 | } |
|
|
605 | |
|
|
606 | package urxvt::anyevent; |
|
|
607 | |
|
|
608 | =head2 The C<urxvt::anyevent> Class |
|
|
609 | |
|
|
610 | The sole purpose of this class is to deliver an interface to the |
|
|
611 | C<AnyEvent> module - any module using it will work inside urxvt without |
|
|
612 | further work. The only exception is that you cannot wait on condition |
|
|
613 | variables, but non-blocking condvar use is ok. What this means is that you |
|
|
614 | cannot use blocking APIs, but the non-blocking variant should work. |
|
|
615 | |
|
|
616 | =cut |
|
|
617 | |
|
|
618 | our $VERSION = 1; |
|
|
619 | |
|
|
620 | $INC{"urxvt/anyevent.pm"} = 1; # mark us as there |
|
|
621 | push @AnyEvent::REGISTRY, [urxvt => urxvt::anyevent::]; |
|
|
622 | |
|
|
623 | sub timer { |
|
|
624 | my ($class, %arg) = @_; |
|
|
625 | |
|
|
626 | my $cb = $arg{cb}; |
|
|
627 | |
|
|
628 | urxvt::timer |
|
|
629 | ->new |
|
|
630 | ->start (urxvt::NOW + $arg{after}) |
|
|
631 | ->cb (sub { |
|
|
632 | $_[0]->stop; # need to cancel manually |
|
|
633 | $cb->(); |
|
|
634 | }) |
|
|
635 | } |
|
|
636 | |
|
|
637 | sub io { |
|
|
638 | my ($class, %arg) = @_; |
|
|
639 | |
|
|
640 | my $cb = $arg{cb}; |
|
|
641 | |
|
|
642 | bless [$arg{fh}, urxvt::iow |
|
|
643 | ->new |
|
|
644 | ->fd (fileno $arg{fh}) |
|
|
645 | ->events (($arg{poll} =~ /r/ ? 1 : 0) |
|
|
646 | | ($arg{poll} =~ /w/ ? 2 : 0)) |
|
|
647 | ->start |
|
|
648 | ->cb (sub { |
|
|
649 | $cb->(($_[1] & 1 ? 'r' : '') |
|
|
650 | . ($_[1] & 2 ? 'w' : '')); |
|
|
651 | })], |
|
|
652 | urxvt::anyevent:: |
|
|
653 | } |
|
|
654 | |
|
|
655 | sub DESTROY { |
|
|
656 | $_[0][1]->stop; |
|
|
657 | } |
|
|
658 | |
|
|
659 | sub condvar { |
|
|
660 | bless \my $flag, urxvt::anyevent::condvar:: |
|
|
661 | } |
|
|
662 | |
|
|
663 | sub urxvt::anyevent::condvar::broadcast { |
|
|
664 | ${$_[0]}++; |
|
|
665 | } |
|
|
666 | |
|
|
667 | sub urxvt::anyevent::condvar::wait { |
|
|
668 | unless (${$_[0]}) { |
|
|
669 | require Carp; |
|
|
670 | Carp::croak ("AnyEvent->condvar blocking wait unsupported in urxvt, use a non-blocking API"); |
|
|
671 | } |
|
|
672 | } |
|
|
673 | |
|
|
674 | package urxvt::term; |
573 | |
675 | |
574 | =head2 The C<urxvt::term> Class |
676 | =head2 The C<urxvt::term> Class |
575 | |
677 | |
576 | =over 4 |
678 | =over 4 |
577 | |
679 | |
… | |
… | |
629 | shade term_name title transparent transparent_all tripleclickwords |
731 | shade term_name title transparent transparent_all tripleclickwords |
630 | utmpInhibit visualBell |
732 | utmpInhibit visualBell |
631 | |
733 | |
632 | =cut |
734 | =cut |
633 | |
735 | |
634 | sub urxvt::term::resource($$;$) { |
736 | sub resource($$;$) { |
635 | my ($self, $name) = (shift, shift); |
737 | my ($self, $name) = (shift, shift); |
636 | unshift @_, $self, $name, ($name =~ s/\s*\+\s*(\d+)$// ? $1 : 0); |
738 | unshift @_, $self, $name, ($name =~ s/\s*\+\s*(\d+)$// ? $1 : 0); |
637 | &urxvt::term::_resource |
739 | &urxvt::term::_resource |
638 | } |
740 | } |
639 | |
741 | |
… | |
… | |
726 | C<$event> I<must> be the event causing the menu to pop up (a button event, |
828 | C<$event> I<must> be the event causing the menu to pop up (a button event, |
727 | currently). |
829 | currently). |
728 | |
830 | |
729 | =cut |
831 | =cut |
730 | |
832 | |
731 | sub urxvt::term::popup { |
833 | sub popup { |
732 | my ($self, $event) = @_; |
834 | my ($self, $event) = @_; |
733 | |
835 | |
734 | $self->grab ($event->{time}, 1) |
836 | $self->grab ($event->{time}, 1) |
735 | or return; |
837 | or return; |
736 | |
838 | |
… | |
… | |
926 | |
1028 | |
927 | =back |
1029 | =back |
928 | |
1030 | |
929 | =cut |
1031 | =cut |
930 | |
1032 | |
931 | sub urxvt::term::line { |
1033 | sub line { |
932 | my ($self, $row) = @_; |
1034 | my ($self, $row) = @_; |
933 | |
1035 | |
934 | my $maxrow = $self->nrow - 1; |
1036 | my $maxrow = $self->nrow - 1; |
935 | |
1037 | |
936 | my ($beg, $end) = ($row, $row); |
1038 | my ($beg, $end) = ($row, $row); |
… | |
… | |
1000 | $offset / $self->{ncol} + $self->{beg}, |
1102 | $offset / $self->{ncol} + $self->{beg}, |
1001 | $offset % $self->{ncol} |
1103 | $offset % $self->{ncol} |
1002 | ) |
1104 | ) |
1003 | } |
1105 | } |
1004 | |
1106 | |
1005 | =item ($row, $col) = $line->coord_of ($offset) |
|
|
1006 | =item $text = $term->special_encode $string |
1107 | =item $text = $term->special_encode $string |
1007 | |
1108 | |
1008 | Converts a perl string into the special encoding used by rxvt-unicode, |
1109 | Converts a perl string into the special encoding used by rxvt-unicode, |
1009 | where one character corresponds to one screen cell. See |
1110 | where one character corresponds to one screen cell. See |
1010 | C<< $term->ROW_t >> for details. |
1111 | C<< $term->ROW_t >> for details. |
… | |
… | |
1012 | =item $string = $term->special_decode $text |
1113 | =item $string = $term->special_decode $text |
1013 | |
1114 | |
1014 | Converts rxvt-unicodes text reprsentation into a perl string. See |
1115 | Converts rxvt-unicodes text reprsentation into a perl string. See |
1015 | C<< $term->ROW_t >> for details. |
1116 | C<< $term->ROW_t >> for details. |
1016 | |
1117 | |
|
|
1118 | =item $success = $term->grab_button ($button, $modifiermask) |
|
|
1119 | |
|
|
1120 | Registers a synchronous button grab. See the XGrabButton manpage. |
|
|
1121 | |
|
|
1122 | =item $success = $term->grab ($eventtime[, $sync]) |
|
|
1123 | |
|
|
1124 | Calls XGrabPointer and XGrabKeyboard in asynchronous (default) or |
|
|
1125 | synchronous (C<$sync> is true). Also remembers the grab timestampe. |
|
|
1126 | |
|
|
1127 | =item $term->allow_events_async |
|
|
1128 | |
|
|
1129 | Calls XAllowEvents with AsyncBoth for the most recent grab. |
|
|
1130 | |
|
|
1131 | =item $term->allow_events_sync |
|
|
1132 | |
|
|
1133 | Calls XAllowEvents with SyncBoth for the most recent grab. |
|
|
1134 | |
|
|
1135 | =item $term->allow_events_replay |
|
|
1136 | |
|
|
1137 | Calls XAllowEvents with both ReplayPointer and ReplayKeyboard for the most |
|
|
1138 | recent grab. |
|
|
1139 | |
|
|
1140 | =item $term->ungrab |
|
|
1141 | |
|
|
1142 | Calls XUngrab for the most recent grab. Is called automatically on |
|
|
1143 | evaluation errors, as it is better to lose the grab in the error case as |
|
|
1144 | the session. |
|
|
1145 | |
1017 | =back |
1146 | =back |
1018 | |
1147 | |
|
|
1148 | =cut |
|
|
1149 | |
|
|
1150 | package urxvt::popup; |
|
|
1151 | |
1019 | =head2 The C<urxvt::popup> Class |
1152 | =head2 The C<urxvt::popup> Class |
1020 | |
1153 | |
1021 | =over 4 |
1154 | =over 4 |
1022 | |
1155 | |
1023 | =cut |
1156 | =cut |
1024 | |
|
|
1025 | package urxvt::popup; |
|
|
1026 | |
1157 | |
1027 | sub add_item { |
1158 | sub add_item { |
1028 | my ($self, $item) = @_; |
1159 | my ($self, $item) = @_; |
1029 | |
1160 | |
1030 | $item->{rend}{normal} = "\x1b[0;30;47m" unless exists $item->{rend}{normal}; |
1161 | $item->{rend}{normal} = "\x1b[0;30;47m" unless exists $item->{rend}{normal}; |
… | |
… | |
1042 | $sep ||= "═"; |
1173 | $sep ||= "═"; |
1043 | |
1174 | |
1044 | $self->add_item ({ |
1175 | $self->add_item ({ |
1045 | rend => { normal => "\x1b[0;30;47m", hover => "\x1b[0;30;47m", active => "\x1b[0;30;47m" }, |
1176 | rend => { normal => "\x1b[0;30;47m", hover => "\x1b[0;30;47m", active => "\x1b[0;30;47m" }, |
1046 | text => "", |
1177 | text => "", |
1047 | render => sub { $sep x $urxvt::TERM->ncol }, |
1178 | render => sub { $sep x $self->{term}->ncol }, |
1048 | activate => sub { }, |
1179 | activate => sub { }, |
1049 | }); |
1180 | }); |
1050 | } |
1181 | } |
1051 | |
1182 | |
1052 | sub add_title { |
1183 | sub add_title { |
… | |
… | |
1060 | } |
1191 | } |
1061 | |
1192 | |
1062 | sub add_button { |
1193 | sub add_button { |
1063 | my ($self, $text, $cb) = @_; |
1194 | my ($self, $text, $cb) = @_; |
1064 | |
1195 | |
1065 | $self->add_item ({ type => "button", text => "[ $text ]", activate => $cb}); |
1196 | $self->add_item ({ type => "button", text => $text, activate => $cb}); |
1066 | } |
1197 | } |
1067 | |
1198 | |
1068 | sub add_toggle { |
1199 | sub add_toggle { |
1069 | my ($self, $text, $cb, $value) = @_; |
1200 | my ($self, $text, $cb, $value) = @_; |
1070 | |
1201 | |
1071 | my $item; $item = { |
1202 | my $item; $item = { |
1072 | type => "button", |
1203 | type => "button", |
1073 | text => " $text", |
1204 | text => " $text", |
1074 | value => $value, |
1205 | value => $value, |
1075 | render => sub { ($item->{value} ? "* " : " ") . $text }, |
1206 | render => sub { ($_[0]{value} ? "* " : " ") . $text }, |
1076 | activate => sub { $cb->($item->{value} = !$item->{value}); }, |
1207 | activate => sub { $cb->($_[0]{value} = !$_[0]{value}); }, |
1077 | }; |
1208 | }; |
1078 | |
1209 | |
1079 | $self->add_item ($item); |
1210 | $self->add_item ($item); |
1080 | } |
1211 | } |
1081 | |
1212 | |
1082 | sub show { |
1213 | sub show { |
1083 | my ($self) = @_; |
1214 | my ($self) = @_; |
1084 | |
1215 | |
1085 | local $urxvt::popup::self = $self; |
1216 | local $urxvt::popup::self = $self; |
1086 | |
1217 | |
|
|
1218 | local $ENV{LC_ALL} = $self->{term}->locale; |
|
|
1219 | |
1087 | urxvt->new ("--perl-lib" => "", "--perl-ext-common" => "", "-pty-fd" => -1, "-sl" => 0, "-b" => 0, |
1220 | urxvt->new ("--perl-lib" => "", "--perl-ext-common" => "", "-pty-fd" => -1, "-sl" => 0, "-b" => 0, |
1088 | "--transient-for" => $self->{term}->parent, |
1221 | "--transient-for" => $self->{term}->parent, |
|
|
1222 | "-display" => $self->{term}->display_id, |
1089 | "-pe" => "urxvt-popup") |
1223 | "-pe" => "urxvt-popup") |
1090 | or die "unable to create popup window\n"; |
1224 | or die "unable to create popup window\n"; |
1091 | } |
1225 | } |
1092 | |
1226 | |
1093 | sub DESTROY { |
1227 | sub DESTROY { |
1094 | my ($self) = @_; |
1228 | my ($self) = @_; |
1095 | |
1229 | |
|
|
1230 | delete $self->{term}{_destroy}{$self}; |
1096 | $self->{term}->ungrab; |
1231 | $self->{term}->ungrab; |
1097 | } |
1232 | } |
1098 | |
1233 | |
1099 | =head2 The C<urxvt::timer> Class |
1234 | =head2 The C<urxvt::timer> Class |
1100 | |
1235 | |
… | |
… | |
1204 | This variable controls the verbosity level of the perl extension. Higher |
1339 | This variable controls the verbosity level of the perl extension. Higher |
1205 | numbers indicate more verbose output. |
1340 | numbers indicate more verbose output. |
1206 | |
1341 | |
1207 | =over 4 |
1342 | =over 4 |
1208 | |
1343 | |
1209 | =item =0 - only fatal messages |
1344 | =item == 0 - fatal messages |
1210 | |
1345 | |
1211 | =item =3 - script loading and management |
1346 | =item >= 3 - script loading and management |
1212 | |
1347 | |
1213 | =item =10 - all events received |
1348 | =item >=10 - all events received |
1214 | |
1349 | |
1215 | =back |
1350 | =back |
1216 | |
1351 | |
1217 | =head1 AUTHOR |
1352 | =head1 AUTHOR |
1218 | |
1353 | |