… | |
… | |
261 | Example configuration: |
261 | Example configuration: |
262 | |
262 | |
263 | URxvt.perl-ext: default,matcher |
263 | URxvt.perl-ext: default,matcher |
264 | URxvt.urlLauncher: sensible-browser |
264 | URxvt.urlLauncher: sensible-browser |
265 | URxvt.matcher.button: 1 |
265 | URxvt.matcher.button: 1 |
266 | URxvt.matcher.pattern.1: \\bwww\\.[\\w-]\\.[\\w./?&@#-]*[\\w/-] |
266 | URxvt.matcher.pattern.1: \\bwww\\.[\\w-]+\\.[\\w./?&@#-]*[\\w/-] |
267 | URxvt.matcher.pattern.2: \\B(/\\S+?):(\\d+)(?=:|$) |
267 | URxvt.matcher.pattern.2: \\B(/\\S+?):(\\d+)(?=:|$) |
268 | URxvt.matcher.launcher.2: gvim +$2 $1 |
268 | URxvt.matcher.launcher.2: gvim +$2 $1 |
269 | |
269 | |
270 | =item xim-onthespot |
270 | =item xim-onthespot |
271 | |
271 | |
… | |
… | |
1110 | sub DESTROY { |
1110 | sub DESTROY { |
1111 | $_[0][1]->stop; |
1111 | $_[0][1]->stop; |
1112 | } |
1112 | } |
1113 | |
1113 | |
1114 | sub condvar { |
1114 | sub condvar { |
1115 | bless \my $flag, urxvt::anyevent::condvar:: |
1115 | bless \my $flag, urxvt::anyevent:: |
1116 | } |
1116 | } |
1117 | |
1117 | |
1118 | sub urxvt::anyevent::condvar::broadcast { |
1118 | sub broadcast { |
1119 | ${$_[0]}++; |
1119 | ${$_[0]}++; |
1120 | } |
1120 | } |
1121 | |
1121 | |
1122 | sub urxvt::anyevent::condvar::wait { |
1122 | sub wait { |
1123 | unless (${$_[0]}) { |
1123 | unless (${$_[0]}) { |
1124 | Carp::croak "AnyEvent->condvar blocking wait unsupported in urxvt, use a non-blocking API"; |
1124 | Carp::croak "AnyEvent->condvar blocking wait unsupported in urxvt, use a non-blocking API"; |
1125 | } |
1125 | } |
|
|
1126 | } |
|
|
1127 | |
|
|
1128 | sub one_event { |
|
|
1129 | Carp::croak "AnyEvent->one_event blocking wait unsupported in urxvt, use a non-blocking API"; |
1126 | } |
1130 | } |
1127 | |
1131 | |
1128 | package urxvt::term; |
1132 | package urxvt::term; |
1129 | |
1133 | |
1130 | =head2 The C<urxvt::term> Class |
1134 | =head2 The C<urxvt::term> Class |
… | |
… | |
1950 | |
1954 | |
1951 | =cut |
1955 | =cut |
1952 | |
1956 | |
1953 | package urxvt::watcher; |
1957 | package urxvt::watcher; |
1954 | |
1958 | |
1955 | @urxvt::timer::ISA = __PACKAGE__; |
|
|
1956 | @urxvt::iow::ISA = __PACKAGE__; |
|
|
1957 | @urxvt::pw::ISA = __PACKAGE__; |
|
|
1958 | @urxvt::iw::ISA = __PACKAGE__; |
|
|
1959 | |
|
|
1960 | =head2 The C<urxvt::timer> Class |
1959 | =head2 The C<urxvt::timer> Class |
1961 | |
1960 | |
1962 | This class implements timer watchers/events. Time is represented as a |
1961 | This class implements timer watchers/events. Time is represented as a |
1963 | fractional number of seconds since the epoch. Example: |
1962 | fractional number of seconds since the epoch. Example: |
1964 | |
1963 | |