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.146 by root, Thu Aug 17 21:56:11 2006 UTC vs.
Revision 1.151 by root, Thu Dec 14 17:22:04 2006 UTC

240 URxvt.tabbed.tab-bg: <colour-index, default 1> 240 URxvt.tabbed.tab-bg: <colour-index, default 1>
241 241
242See I<COLOR AND GRAPHICS> in the @@RXVT_NAME@@(1) manpage for valid 242See I<COLOR AND GRAPHICS> in the @@RXVT_NAME@@(1) manpage for valid
243indices. 243indices.
244 244
245=item mark-urls 245=item matcher
246 246
247Uses per-line display filtering (C<on_line_update>) to underline urls and 247Uses per-line display filtering (C<on_line_update>) to underline text
248make them clickable. When middle-clicked, the program specified in the 248matching a certain pattern and make it clickable. When clicked with the
249resource C<urlLauncher> (default C<x-www-browser>) will be started with 249mouse button specified in the C<matcher.button> resource (default 2, or
250the URL as first argument. 250middle), the program specified in the C<matcher.launcher> resource
251(default, the C<urlLauncher> resource, C<sensible-browser>) will be started
252with the matched text as first argument. The default configuration is
253suitable for matching URLs and launching a web browser, like the
254former "mark-urls" extension.
255
256The default pattern to match URLs can be overridden with the
257C<matcher.pattern.0> resource, and additional patterns can be specified
258with numbered patterns, in a manner similar to the "selection" extension.
259The launcher can also be overridden on a per-pattern basis.
260
261Example configuration:
262
263 URxvt.perl-ext: default,matcher
264 URxvt.urlLauncher: sensible-browser
265 URxvt.matcher.button: 1
266 URxvt.matcher.pattern.1: \\bwww\\.[\\w-]+\\.[\\w./?&@#-]*[\\w/-]
267 URxvt.matcher.pattern.2: \\B(/\\S+?):(\\d+)(?=:|$)
268 URxvt.matcher.launcher.2: gvim +$2 $1
251 269
252=item xim-onthespot 270=item xim-onthespot
253 271
254This (experimental) perl extension implements OnTheSpot editing. It does 272This (experimental) perl extension implements OnTheSpot editing. It does
255not work perfectly, and some input methods don't seem to work well with 273not work perfectly, and some input methods don't seem to work well with
1092sub DESTROY { 1110sub DESTROY {
1093 $_[0][1]->stop; 1111 $_[0][1]->stop;
1094} 1112}
1095 1113
1096sub condvar { 1114sub condvar {
1097 bless \my $flag, urxvt::anyevent::condvar:: 1115 bless \my $flag, urxvt::anyevent::
1098} 1116}
1099 1117
1100sub urxvt::anyevent::condvar::broadcast { 1118sub broadcast {
1101 ${$_[0]}++; 1119 ${$_[0]}++;
1102} 1120}
1103 1121
1104sub urxvt::anyevent::condvar::wait { 1122sub wait {
1105 unless (${$_[0]}) { 1123 unless (${$_[0]}) {
1106 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";
1107 } 1125 }
1126}
1127
1128sub one_event {
1129 Carp::croak "AnyEvent->one_event blocking wait unsupported in urxvt, use a non-blocking API";
1108} 1130}
1109 1131
1110package urxvt::term; 1132package urxvt::term;
1111 1133
1112=head2 The C<urxvt::term> Class 1134=head2 The C<urxvt::term> Class
1932 1954
1933=cut 1955=cut
1934 1956
1935package urxvt::watcher; 1957package urxvt::watcher;
1936 1958
1937@urxvt::timer::ISA = __PACKAGE__;
1938@urxvt::iow::ISA = __PACKAGE__;
1939@urxvt::pw::ISA = __PACKAGE__;
1940@urxvt::iw::ISA = __PACKAGE__;
1941
1942=head2 The C<urxvt::timer> Class 1959=head2 The C<urxvt::timer> Class
1943 1960
1944This class implements timer watchers/events. Time is represented as a 1961This class implements timer watchers/events. Time is represented as a
1945fractional number of seconds since the epoch. Example: 1962fractional number of seconds since the epoch. Example:
1946 1963

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines