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