… | |
… | |
91 | |
91 | |
92 | =item selection-popup (enabled by default) |
92 | =item selection-popup (enabled by default) |
93 | |
93 | |
94 | Binds a popup menu to Ctrl-Button3 that lets you convert the selection |
94 | Binds a popup menu to Ctrl-Button3 that lets you convert the selection |
95 | text into various other formats/action (such as uri unescaping, perl |
95 | text into various other formats/action (such as uri unescaping, perl |
96 | evalution, web-browser starting etc.), depending on content. |
96 | evaluation, web-browser starting etc.), depending on content. |
97 | |
97 | |
98 | Other extensions can extend this popup menu by pushing a code reference |
98 | Other extensions can extend this popup menu by pushing a code reference |
99 | onto C<@{ $term->{selection_popup_hook} }>, that is called whenever the |
99 | onto C<@{ $term->{selection_popup_hook} }>, that is called whenever the |
100 | popup is displayed. |
100 | popup is displayed. |
101 | |
101 | |
… | |
… | |
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 B<Shift-Left> and |
|
|
175 | B<Shift-Right> will switch to the tab left or right of the current one, |
|
|
176 | while B<Shift-Down> creates a new tab. |
|
|
177 | |
167 | =item mark-urls |
178 | =item mark-urls |
168 | |
179 | |
169 | Uses per-line display filtering (C<on_line_update>) to underline urls and |
180 | 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 |
181 | make them clickable. When middle-clicked, the program specified in the |
171 | resource C<urlLauncher> (default C<x-www-browser>) will be started with |
182 | resource C<urlLauncher> (default C<x-www-browser>) will be started with |
… | |
… | |
490 | |
501 | |
491 | C<on_key_press> additionally receives the string rxvt-unicode would |
502 | C<on_key_press> additionally receives the string rxvt-unicode would |
492 | output, if any, in locale-specific encoding. |
503 | output, if any, in locale-specific encoding. |
493 | |
504 | |
494 | subwindow. |
505 | subwindow. |
|
|
506 | |
|
|
507 | =item on_client_message $term, $event |
|
|
508 | |
|
|
509 | =item on_wm_protocols $term, $event |
|
|
510 | |
|
|
511 | =item on_wm_delete_window $term, $event |
|
|
512 | |
|
|
513 | Called when various types of ClientMessage events are received (all with |
|
|
514 | format=32, WM_PROTOCOLS or WM_PROTOCOLS:WM_DELETE_WINDOW). |
495 | |
515 | |
496 | =back |
516 | =back |
497 | |
517 | |
498 | =cut |
518 | =cut |
499 | |
519 | |
… | |
… | |
1790 | |
1810 | |
1791 | Stop watching for events on the given filehandle. |
1811 | Stop watching for events on the given filehandle. |
1792 | |
1812 | |
1793 | =back |
1813 | =back |
1794 | |
1814 | |
|
|
1815 | =head2 The C<urxvt::iw> Class |
|
|
1816 | |
|
|
1817 | This class implements idle watchers, that get called automatically when |
|
|
1818 | the process is idle. They should return as fast as possible, after doing |
|
|
1819 | some useful work. |
|
|
1820 | |
|
|
1821 | =over 4 |
|
|
1822 | |
|
|
1823 | =item $iw = new urxvt::iw |
|
|
1824 | |
|
|
1825 | Create a new idle watcher object in stopped state. |
|
|
1826 | |
|
|
1827 | =item $iw = $iw->cb (sub { my ($iw) = @_; ... }) |
|
|
1828 | |
|
|
1829 | Set the callback to be called when the watcher triggers. |
|
|
1830 | |
|
|
1831 | =item $timer = $timer->start |
|
|
1832 | |
|
|
1833 | Start the watcher. |
|
|
1834 | |
|
|
1835 | =item $timer = $timer->stop |
|
|
1836 | |
|
|
1837 | Stop the watcher. |
|
|
1838 | |
|
|
1839 | =back |
|
|
1840 | |
|
|
1841 | =head2 The C<urxvt::pw> Class |
|
|
1842 | |
|
|
1843 | This class implements process watchers. They create an event whenever a |
|
|
1844 | process exits, after which they stop automatically. |
|
|
1845 | |
|
|
1846 | my $pid = fork; |
|
|
1847 | ... |
|
|
1848 | $term->{pw} = urxvt::pw |
|
|
1849 | ->new |
|
|
1850 | ->start ($pid) |
|
|
1851 | ->cb (sub { |
|
|
1852 | my ($pw, $exit_status) = @_; |
|
|
1853 | ... |
|
|
1854 | }); |
|
|
1855 | |
|
|
1856 | =over 4 |
|
|
1857 | |
|
|
1858 | =item $pw = new urxvt::pw |
|
|
1859 | |
|
|
1860 | Create a new process watcher in stopped state. |
|
|
1861 | |
|
|
1862 | =item $pw = $pw->cb (sub { my ($pw, $exit_status) = @_; ... }) |
|
|
1863 | |
|
|
1864 | Set the callback to be called when the timer triggers. |
|
|
1865 | |
|
|
1866 | =item $pw = $timer->start ($pid) |
|
|
1867 | |
|
|
1868 | Tells the wqtcher to start watching for process C<$pid>. |
|
|
1869 | |
|
|
1870 | =item $pw = $pw->stop |
|
|
1871 | |
|
|
1872 | Stop the watcher. |
|
|
1873 | |
|
|
1874 | =back |
|
|
1875 | |
1795 | =head1 ENVIRONMENT |
1876 | =head1 ENVIRONMENT |
1796 | |
1877 | |
1797 | =head2 URXVT_PERL_VERBOSITY |
1878 | =head2 URXVT_PERL_VERBOSITY |
1798 | |
1879 | |
1799 | This variable controls the verbosity level of the perl extension. Higher |
1880 | This variable controls the verbosity level of the perl extension. Higher |