ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/urxvt.pm
(Generate patch)

Comparing rxvt-unicode/src/urxvt.pm (file contents):
Revision 1.147 by root, Tue Oct 3 11:32:20 2006 UTC vs.
Revision 1.151 by root, Thu Dec 14 17:22:04 2006 UTC

261Example configuration: 261Example 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
1110sub DESTROY { 1110sub DESTROY {
1111 $_[0][1]->stop; 1111 $_[0][1]->stop;
1112} 1112}
1113 1113
1114sub condvar { 1114sub condvar {
1115 bless \my $flag, urxvt::anyevent::condvar:: 1115 bless \my $flag, urxvt::anyevent::
1116} 1116}
1117 1117
1118sub urxvt::anyevent::condvar::broadcast { 1118sub broadcast {
1119 ${$_[0]}++; 1119 ${$_[0]}++;
1120} 1120}
1121 1121
1122sub urxvt::anyevent::condvar::wait { 1122sub 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
1128sub one_event {
1129 Carp::croak "AnyEvent->one_event blocking wait unsupported in urxvt, use a non-blocking API";
1126} 1130}
1127 1131
1128package urxvt::term; 1132package 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
1953package urxvt::watcher; 1957package 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
1962This class implements timer watchers/events. Time is represented as a 1961This class implements timer watchers/events. Time is represented as a
1963fractional number of seconds since the epoch. Example: 1962fractional number of seconds since the epoch. Example:
1964 1963

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines