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.113 by root, Fri Jan 20 10:27:08 2006 UTC vs.
Revision 1.115 by root, Fri Jan 20 15:57:21 2006 UTC

162 162
163The first line tells the selection code to treat the unchanging part of 163The first line tells the selection code to treat the unchanging part of
164every error message as a selection pattern, and the second line transforms 164every error message as a selection pattern, and the second line transforms
165the message into vi commands to load the file. 165the message into vi commands to load the file.
166 166
167=item tabbed
168
169This transforms the terminal into a tabbar with additional terminals, that
170is, it implements what is commonly refered to as "tabbed terminal". The topmost line
171displays a "[NEW]" button, which, when clicked, will add a new tab, followed by one
172button per tab.
173
174Clicking a button will activate that tab. Pressing Shift-Left and
175Shift-Right will switch to the tab left or right of the current one.
176
167=item mark-urls 177=item mark-urls
168 178
169Uses per-line display filtering (C<on_line_update>) to underline urls and 179Uses per-line display filtering (C<on_line_update>) to underline urls and
170make them clickable. When middle-clicked, the program specified in the 180make them clickable. When middle-clicked, the program specified in the
171resource C<urlLauncher> (default C<x-www-browser>) will be started with 181resource C<urlLauncher> (default C<x-www-browser>) will be started with
490 500
491C<on_key_press> additionally receives the string rxvt-unicode would 501C<on_key_press> additionally receives the string rxvt-unicode would
492output, if any, in locale-specific encoding. 502output, if any, in locale-specific encoding.
493 503
494subwindow. 504subwindow.
505
506=item on_client_message $term, $event
507
508=item on_wm_protocols $term, $event
509
510=item on_wm_delete_window $term, $event
511
512Called when various types of ClientMessage events are received (all with
513format=32, WM_PROTOCOLS or WM_PROTOCOLS:WM_DELETE_WINDOW).
495 514
496=back 515=back
497 516
498=cut 517=cut
499 518
1790 1809
1791Stop watching for events on the given filehandle. 1810Stop watching for events on the given filehandle.
1792 1811
1793=back 1812=back
1794 1813
1814=head2 The C<urxvt::iw> Class
1815
1816This class implements idle watchers, that get called automatically when
1817the process is idle. They should return as fast as possible, after doing
1818some useful work.
1819
1820=over 4
1821
1822=item $iw = new urxvt::iw
1823
1824Create a new idle watcher object in stopped state.
1825
1826=item $iw = $iw->cb (sub { my ($iw) = @_; ... })
1827
1828Set the callback to be called when the watcher triggers.
1829
1830=item $timer = $timer->start
1831
1832Start the watcher.
1833
1834=item $timer = $timer->stop
1835
1836Stop the watcher.
1837
1838=back
1839
1840=head2 The C<urxvt::pw> Class
1841
1842This class implements process watchers. They create an event whenever a
1843process exits, after which they stop automatically.
1844
1845 my $pid = fork;
1846 ...
1847 $term->{pw} = urxvt::pw
1848 ->new
1849 ->start ($pid)
1850 ->cb (sub {
1851 my ($pw, $exit_status) = @_;
1852 ...
1853 });
1854
1855=over 4
1856
1857=item $pw = new urxvt::pw
1858
1859Create a new process watcher in stopped state.
1860
1861=item $pw = $pw->cb (sub { my ($pw, $exit_status) = @_; ... })
1862
1863Set the callback to be called when the timer triggers.
1864
1865=item $pw = $timer->start ($pid)
1866
1867Tells the wqtcher to start watching for process C<$pid>.
1868
1869=item $pw = $pw->stop
1870
1871Stop the watcher.
1872
1873=back
1874
1795=head1 ENVIRONMENT 1875=head1 ENVIRONMENT
1796 1876
1797=head2 URXVT_PERL_VERBOSITY 1877=head2 URXVT_PERL_VERBOSITY
1798 1878
1799This variable controls the verbosity level of the perl extension. Higher 1879This variable controls the verbosity level of the perl extension. Higher

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines