… | |
… | |
121 | <dd> |
121 | <dd> |
122 | <pre> |
122 | <pre> |
123 | URxvt.selection.pattern-0: \\|([^|]+)\\|</pre> |
123 | URxvt.selection.pattern-0: \\|([^|]+)\\|</pre> |
124 | </dd> |
124 | </dd> |
125 | <dd> |
125 | <dd> |
|
|
126 | <p>Another example: Programs I use often output ``absolute path: '' at the |
|
|
127 | beginning of a line when they process multiple files. The following |
|
|
128 | pattern matches the filename (note, there is a single space at the very |
|
|
129 | end):</p> |
|
|
130 | </dd> |
|
|
131 | <dd> |
|
|
132 | <pre> |
|
|
133 | URxvt.selection.pattern-0: ^(/[^:]+):\</pre> |
|
|
134 | </dd> |
|
|
135 | <dd> |
126 | <p>You can look at the source of the selection extension to see more |
136 | <p>You can look at the source of the selection extension to see more |
127 | interesting uses, such as parsing a line from beginning to end.</p> |
137 | interesting uses, such as parsing a line from beginning to end.</p> |
128 | </dd> |
138 | </dd> |
129 | <dd> |
139 | <dd> |
130 | <p>This extension also offers following bindable keyboard commands:</p> |
140 | <p>This extension also offers following bindable keyboard commands:</p> |
… | |
… | |
150 | <dt><strong>selection-popup (enabled by default)</strong><br /> |
160 | <dt><strong>selection-popup (enabled by default)</strong><br /> |
151 | </dt> |
161 | </dt> |
152 | <dd> |
162 | <dd> |
153 | Binds a popup menu to Ctrl-Button3 that lets you convert the selection |
163 | Binds a popup menu to Ctrl-Button3 that lets you convert the selection |
154 | text into various other formats/action (such as uri unescaping, perl |
164 | text into various other formats/action (such as uri unescaping, perl |
155 | evalution, web-browser starting etc.), depending on content. |
165 | evaluation, web-browser starting etc.), depending on content. |
156 | </dd> |
166 | </dd> |
157 | <dd> |
167 | <dd> |
158 | <p>Other extensions can extend this popup menu by pushing a code reference |
168 | <p>Other extensions can extend this popup menu by pushing a code reference |
159 | onto <code>@{ $term-</code>{selection_popup_hook} }>, that is called whenever the |
169 | onto <code>@{ $term-</code>{selection_popup_hook} }>, that is called whenever the |
160 | popup is displayed.</p> |
170 | popup is displayed.</p> |
… | |
… | |
195 | was started, while <code>Enter</code> or <code>Return</code> stay at the current position and |
205 | was started, while <code>Enter</code> or <code>Return</code> stay at the current position and |
196 | additionally stores the first match in the current line into the primary |
206 | additionally stores the first match in the current line into the primary |
197 | selection.</p> |
207 | selection.</p> |
198 | </dd> |
208 | </dd> |
199 | <p></p> |
209 | <p></p> |
|
|
210 | <dt><strong><a name="item_readline">readline (enabled by default)</a></strong><br /> |
|
|
211 | </dt> |
|
|
212 | <dd> |
|
|
213 | A support package that tries to make editing with readline easier. At the |
|
|
214 | moment, it reacts to clicking with the left mouse button by trying to |
|
|
215 | move the text cursor to this position. It does so by generating as many |
|
|
216 | cursor-left or cursor-right keypresses as required (the this only works |
|
|
217 | for programs that correctly support wide characters). |
|
|
218 | </dd> |
|
|
219 | <dd> |
|
|
220 | <p>To avoid too many false positives, this is only done when:</p> |
|
|
221 | </dd> |
|
|
222 | <dl> |
|
|
223 | <dt><strong><a name="item__2d_the_tty_is_in_icanon_state_2e">- the tty is in ICANON state.</a></strong><br /> |
|
|
224 | </dt> |
|
|
225 | <dt><strong><a name="item__2d_the_text_cursor_is_visible_2e">- the text cursor is visible.</a></strong><br /> |
|
|
226 | </dt> |
|
|
227 | <dt><strong><a name="item__2d_the_primary_screen_is_currently_being_displaye">- the primary screen is currently being displayed.</a></strong><br /> |
|
|
228 | </dt> |
|
|
229 | <dt><strong><a name="item_same">- the mouse is on the same (multi-row-) line as the text cursor.</a></strong><br /> |
|
|
230 | </dt> |
|
|
231 | </dl> |
|
|
232 | <p>The normal selection mechanism isn't disabled, so quick successive clicks |
|
|
233 | might interfere with selection creation in harmless ways.</p> |
200 | <dt><strong><a name="item_selection_2dautotransform">selection-autotransform</a></strong><br /> |
234 | <dt><strong><a name="item_selection_2dautotransform">selection-autotransform</a></strong><br /> |
201 | </dt> |
235 | </dt> |
202 | <dd> |
236 | <dd> |
203 | This selection allows you to do automatic transforms on a selection |
237 | This selection allows you to do automatic transforms on a selection |
204 | whenever a selection is made. |
238 | whenever a selection is made. |
… | |
… | |
255 | is, it implements what is commonly refered to as ``tabbed terminal''. The topmost line |
289 | is, it implements what is commonly refered to as ``tabbed terminal''. The topmost line |
256 | displays a ``[NEW]'' button, which, when clicked, will add a new tab, followed by one |
290 | displays a ``[NEW]'' button, which, when clicked, will add a new tab, followed by one |
257 | button per tab. |
291 | button per tab. |
258 | </dd> |
292 | </dd> |
259 | <dd> |
293 | <dd> |
260 | <p>Clicking a button will activate that tab. Pressing Shift-Left and |
294 | <p>Clicking a button will activate that tab. Pressing <strong>Shift-Left</strong> and |
261 | Shift-Right will switch to the tab left or right of the current one.</p> |
295 | <strong>Shift-Right</strong> will switch to the tab left or right of the current one, |
|
|
296 | while <strong>Shift-Down</strong> creates a new tab.</p> |
|
|
297 | </dd> |
|
|
298 | <dd> |
|
|
299 | <p>The tabbar itself can be configured similarly to a normal terminal, but |
|
|
300 | with a resource class of <code>URxvt.tabbed</code>. In addition, it supports the |
|
|
301 | following four resources (shown with defaults):</p> |
|
|
302 | </dd> |
|
|
303 | <dd> |
|
|
304 | <pre> |
|
|
305 | URxvt.tabbed.tabbar-fg: <colour-index, default 3> |
|
|
306 | URxvt.tabbed.tabbar-bg: <colour-index, default 0> |
|
|
307 | URxvt.tabbed.tab-fg: <colour-index, default 0> |
|
|
308 | URxvt.tabbed.tab-bg: <colour-index, default 1></pre> |
|
|
309 | </dd> |
|
|
310 | <dd> |
|
|
311 | <p>See <em>COLOR AND GRAPHICS</em> in the <code>rxvt(1)</code> manpage for valid |
|
|
312 | indices.</p> |
262 | </dd> |
313 | </dd> |
263 | <p></p> |
314 | <p></p> |
264 | <dt><strong><a name="item_mark_2durls">mark-urls</a></strong><br /> |
315 | <dt><strong><a name="item_mark_2durls">mark-urls</a></strong><br /> |
265 | </dt> |
316 | </dt> |
266 | <dd> |
317 | <dd> |
… | |
… | |
268 | make them clickable. When middle-clicked, the program specified in the |
319 | make them clickable. When middle-clicked, the program specified in the |
269 | resource <code>urlLauncher</code> (default <code>x-www-browser</code>) will be started with |
320 | resource <code>urlLauncher</code> (default <code>x-www-browser</code>) will be started with |
270 | the URL as first argument. |
321 | the URL as first argument. |
271 | </dd> |
322 | </dd> |
272 | <p></p> |
323 | <p></p> |
|
|
324 | <dt><strong><a name="item_xim_2donthespot">xim-onthespot</a></strong><br /> |
|
|
325 | </dt> |
|
|
326 | <dd> |
|
|
327 | This (experimental) perl extension implements OnTheSpot editing. It does |
|
|
328 | not work perfectly, and some input methods don't seem to work well with |
|
|
329 | OnTheSpot editing in general, but it seems to work at leats for SCIM and |
|
|
330 | kinput2. |
|
|
331 | </dd> |
|
|
332 | <dd> |
|
|
333 | <p>You enable it by specifying this extension and a preedit style of |
|
|
334 | <code>OnTheSpot</code>, i.e.:</p> |
|
|
335 | </dd> |
|
|
336 | <dd> |
|
|
337 | <pre> |
|
|
338 | rxvt -pt OnTheSpot -pe xim-onthespot</pre> |
|
|
339 | </dd> |
|
|
340 | <p></p> |
273 | <dt><strong><a name="item_automove_2dbackground">automove-background</a></strong><br /> |
341 | <dt><strong><a name="item_automove_2dbackground">automove-background</a></strong><br /> |
274 | </dt> |
342 | </dt> |
275 | <dd> |
343 | <dd> |
276 | This is basically a one-line extension that dynamically changes the background pixmap offset |
344 | This is basically a one-line extension that dynamically changes the background pixmap offset |
277 | to the window position, in effect creating the same effect as pseudo transparency with |
345 | to the window position, in effect creating the same effect as pseudo transparency with |
… | |
… | |
294 | </dt> |
362 | </dt> |
295 | <dd> |
363 | <dd> |
296 | Displays a digital clock using the built-in overlay. |
364 | Displays a digital clock using the built-in overlay. |
297 | </dd> |
365 | </dd> |
298 | <p></p> |
366 | <p></p> |
299 | <dt><strong><a name="item_example_2drefresh_2dhooks">example-refresh-hooks</a></strong><br /> |
367 | <dt><strong><a name="item_remote_2dclipboard">remote-clipboard</a></strong><br /> |
300 | </dt> |
368 | </dt> |
|
|
369 | <dd> |
|
|
370 | Somewhat of a misnomer, this extension adds two menu entries to the |
|
|
371 | selection popup that allows one ti run external commands to store the |
|
|
372 | selection somewhere and fetch it again. |
301 | <dd> |
373 | </dd> |
302 | Displays a very simple digital clock in the upper right corner of the |
374 | <dd> |
303 | window. Illustrates overwriting the refresh callbacks to create your own |
375 | <p>We use it to implement a ``distributed selection mechanism'', which just |
304 | overlays or changes. |
376 | means that one command uploads the file to a remote server, and another |
|
|
377 | reads it.</p> |
|
|
378 | </dd> |
|
|
379 | <dd> |
|
|
380 | <p>The commands can be set using the <code>URxvt.remote-selection.store</code> and |
|
|
381 | <code>URxvt.remote-selection.fetch</code> resources. The first should read the |
|
|
382 | selection to store from STDIN (always in UTF-8), the second should provide |
|
|
383 | the selection data on STDOUT (also in UTF-8).</p> |
|
|
384 | </dd> |
|
|
385 | <dd> |
|
|
386 | <p>The defaults (which are likely useless to you) use rsh and cat:</p> |
|
|
387 | </dd> |
|
|
388 | <dd> |
|
|
389 | <pre> |
|
|
390 | URxvt.remote-selection.store: rsh ruth 'cat >/tmp/distributed-selection' |
|
|
391 | URxvt.remote-selection.fetch: rsh ruth 'cat /tmp/distributed-selection'</pre> |
305 | </dd> |
392 | </dd> |
306 | <p></p> |
393 | <p></p> |
307 | <dt><strong><a name="item_selection_2dpastebin">selection-pastebin</a></strong><br /> |
394 | <dt><strong><a name="item_selection_2dpastebin">selection-pastebin</a></strong><br /> |
308 | </dt> |
395 | </dt> |
309 | <dd> |
396 | <dd> |
… | |
… | |
342 | for the filename):</p> |
429 | for the filename):</p> |
343 | </dd> |
430 | </dd> |
344 | <dd> |
431 | <dd> |
345 | <pre> |
432 | <pre> |
346 | URxvt.selection-pastebin.url: <a href="http://www.ta-sa.org/files/txt/%">http://www.ta-sa.org/files/txt/%</a></pre> |
433 | URxvt.selection-pastebin.url: <a href="http://www.ta-sa.org/files/txt/%">http://www.ta-sa.org/files/txt/%</a></pre> |
|
|
434 | </dd> |
|
|
435 | <p></p> |
|
|
436 | <dt><strong><a name="item_example_2drefresh_2dhooks">example-refresh-hooks</a></strong><br /> |
|
|
437 | </dt> |
|
|
438 | <dd> |
|
|
439 | Displays a very simple digital clock in the upper right corner of the |
|
|
440 | window. Illustrates overwriting the refresh callbacks to create your own |
|
|
441 | overlays or changes. |
347 | </dd> |
442 | </dd> |
348 | <p></p></dl> |
443 | <p></p></dl> |
349 | <p> |
444 | <p> |
350 | </p> |
445 | </p> |
351 | <hr /> |
446 | <hr /> |
… | |
… | |
452 | </dd> |
547 | </dd> |
453 | <p></p> |
548 | <p></p> |
454 | <dt><strong><a name="item_on_destroy__24term">on_destroy $term</a></strong><br /> |
549 | <dt><strong><a name="item_on_destroy__24term">on_destroy $term</a></strong><br /> |
455 | </dt> |
550 | </dt> |
456 | <dd> |
551 | <dd> |
457 | Called whenever something tries to destroy terminal, before doing anything |
552 | Called whenever something tries to destroy terminal, when the terminal is |
458 | yet. If this hook returns true, then destruction is skipped, but this is |
553 | still fully functional (not for long, though). |
459 | rarely a good idea. |
|
|
460 | </dd> |
554 | </dd> |
461 | <p></p> |
555 | <p></p> |
462 | <dt><strong><a name="item_on_reset__24term">on_reset $term</a></strong><br /> |
556 | <dt><strong><a name="item_on_reset__24term">on_reset $term</a></strong><br /> |
463 | </dt> |
557 | </dt> |
464 | <dd> |
558 | <dd> |
… | |
… | |
602 | </dt> |
696 | </dt> |
603 | <dd> |
697 | <dd> |
604 | Called just after the screen gets redrawn. See <code>on_refresh_begin</code>. |
698 | Called just after the screen gets redrawn. See <code>on_refresh_begin</code>. |
605 | </dd> |
699 | </dd> |
606 | <p></p> |
700 | <p></p> |
607 | <dt><strong><a name="item_on_keyboard_command__24term_2c__24string">on_keyboard_command $term, $string</a></strong><br /> |
701 | <dt><strong><a name="item_on_user_command__24term_2c__24string">on_user_command $term, $string</a></strong><br /> |
608 | </dt> |
702 | </dt> |
609 | <dd> |
703 | <dd> |
610 | Called whenever the user presses a key combination that has a |
704 | Called whenever the a user-configured event is being activated (e.g. via |
611 | <code>perl:string</code> action bound to it (see description of the <strong>keysym</strong> |
705 | a <code>perl:string</code> action bound to a key, see description of the <strong>keysym</strong> |
612 | resource in the <code>rxvt(1)</code> manpage). |
706 | resource in the <code>rxvt(1)</code> manpage). |
|
|
707 | </dd> |
|
|
708 | <dd> |
|
|
709 | <p>The event is simply the action string. This interface is assumed to change |
|
|
710 | slightly in the future.</p> |
613 | </dd> |
711 | </dd> |
614 | <p></p> |
712 | <p></p> |
615 | <dt><strong><a name="item_on_x_event__24term_2c__24event">on_x_event $term, $event</a></strong><br /> |
713 | <dt><strong><a name="item_on_x_event__24term_2c__24event">on_x_event $term, $event</a></strong><br /> |
616 | </dt> |
714 | </dt> |
617 | <dd> |
715 | <dd> |
… | |
… | |
634 | focus out processing. |
732 | focus out processing. |
635 | </dd> |
733 | </dd> |
636 | <p></p> |
734 | <p></p> |
637 | <dt><strong><a name="item_on_configure_notify__24term_2c__24event">on_configure_notify $term, $event</a></strong><br /> |
735 | <dt><strong><a name="item_on_configure_notify__24term_2c__24event">on_configure_notify $term, $event</a></strong><br /> |
638 | </dt> |
736 | </dt> |
|
|
737 | <dt><strong><a name="item_on_property_notify__24term_2c__24event">on_property_notify $term, $event</a></strong><br /> |
|
|
738 | </dt> |
639 | <dt><strong><a name="item_on_key_press__24term_2c__24event_2c__24keysym_2c__">on_key_press $term, $event, $keysym, $octets</a></strong><br /> |
739 | <dt><strong><a name="item_on_key_press__24term_2c__24event_2c__24keysym_2c__">on_key_press $term, $event, $keysym, $octets</a></strong><br /> |
640 | </dt> |
740 | </dt> |
641 | <dt><strong><a name="item_on_key_release__24term_2c__24event_2c__24keysym">on_key_release $term, $event, $keysym</a></strong><br /> |
741 | <dt><strong><a name="item_on_key_release__24term_2c__24event_2c__24keysym">on_key_release $term, $event, $keysym</a></strong><br /> |
642 | </dt> |
742 | </dt> |
643 | <dt><strong><a name="item_on_button_press__24term_2c__24event">on_button_press $term, $event</a></strong><br /> |
743 | <dt><strong><a name="item_on_button_press__24term_2c__24event">on_button_press $term, $event</a></strong><br /> |
… | |
… | |
654 | Called whenever the corresponding X event is received for the terminal If |
754 | Called whenever the corresponding X event is received for the terminal If |
655 | the hook returns true, then the even will be ignored by rxvt-unicode. |
755 | the hook returns true, then the even will be ignored by rxvt-unicode. |
656 | </dd> |
756 | </dd> |
657 | <dd> |
757 | <dd> |
658 | <p>The event is a hash with most values as named by Xlib (see the XEvent |
758 | <p>The event is a hash with most values as named by Xlib (see the XEvent |
659 | manpage), with the additional members <code>row</code> and <code>col</code>, which are the row |
759 | manpage), with the additional members <code>row</code> and <code>col</code>, which are the |
660 | and column under the mouse cursor.</p> |
760 | (real, not screen-based) row and column under the mouse cursor.</p> |
661 | </dd> |
761 | </dd> |
662 | <dd> |
762 | <dd> |
663 | <p><code>on_key_press</code> additionally receives the string rxvt-unicode would |
763 | <p><code>on_key_press</code> additionally receives the string rxvt-unicode would |
664 | output, if any, in locale-specific encoding.</p> |
764 | output, if any, in locale-specific encoding.</p> |
665 | </dd> |
765 | </dd> |
… | |
… | |
752 | <p>Using this function has the advantage that its output ends up in the |
852 | <p>Using this function has the advantage that its output ends up in the |
753 | correct place, e.g. on stderr of the connecting urxvtc client.</p> |
853 | correct place, e.g. on stderr of the connecting urxvtc client.</p> |
754 | </dd> |
854 | </dd> |
755 | <dd> |
855 | <dd> |
756 | <p>Messages have a size limit of 1023 bytes currently.</p> |
856 | <p>Messages have a size limit of 1023 bytes currently.</p> |
|
|
857 | </dd> |
|
|
858 | <p></p> |
|
|
859 | <dt><strong><a name="item__40terms__3d_urxvt_3a_3atermlist">@terms = urxvt::termlist</a></strong><br /> |
|
|
860 | </dt> |
|
|
861 | <dd> |
|
|
862 | Returns all urxvt::term objects that exist in this process, regardless of |
|
|
863 | wether they are started, being destroyed etc., so be careful. Only term |
|
|
864 | objects that have perl extensions attached will be returned (because there |
|
|
865 | is no urxvt::term objet associated with others). |
757 | </dd> |
866 | </dd> |
758 | <p></p> |
867 | <p></p> |
759 | <dt><strong><a name="item__24time__3d_urxvt_3a_3anow">$time = urxvt::NOW</a></strong><br /> |
868 | <dt><strong><a name="item__24time__3d_urxvt_3a_3anow">$time = urxvt::NOW</a></strong><br /> |
760 | </dt> |
869 | </dt> |
761 | <dd> |
870 | <dd> |
… | |
… | |
829 | <p></p> |
938 | <p></p> |
830 | <dt><strong><a name="item__24rend__3d_urxvt_3a_3aset_fgcolor__24rend_2c__24n">$rend = urxvt::SET_FGCOLOR $rend, $new_colour</a></strong><br /> |
939 | <dt><strong><a name="item__24rend__3d_urxvt_3a_3aset_fgcolor__24rend_2c__24n">$rend = urxvt::SET_FGCOLOR $rend, $new_colour</a></strong><br /> |
831 | </dt> |
940 | </dt> |
832 | <dt><strong><a name="item__24rend__3d_urxvt_3a_3aset_bgcolor__24rend_2c__24n">$rend = urxvt::SET_BGCOLOR $rend, $new_colour</a></strong><br /> |
941 | <dt><strong><a name="item__24rend__3d_urxvt_3a_3aset_bgcolor__24rend_2c__24n">$rend = urxvt::SET_BGCOLOR $rend, $new_colour</a></strong><br /> |
833 | </dt> |
942 | </dt> |
|
|
943 | <dt><strong><a name="item__24rend__3d_urxvt_3a_3aset_color__24rend_2c__24new">$rend = urxvt::SET_COLOR $rend, $new_fg, $new_bg</a></strong><br /> |
|
|
944 | </dt> |
834 | <dd> |
945 | <dd> |
835 | Replace the foreground/background colour in the rendition mask with the |
946 | Replace the foreground/background colour in the rendition mask with the |
836 | specified one. |
947 | specified one. |
837 | </dd> |
948 | </dd> |
838 | <p></p> |
949 | <p></p> |
… | |
… | |
872 | </dd> |
983 | </dd> |
873 | <dd> |
984 | <dd> |
874 | <p>Croaks (and probably outputs an error message) if the new instance |
985 | <p>Croaks (and probably outputs an error message) if the new instance |
875 | couldn't be created. Returns <code>undef</code> if the new instance didn't |
986 | couldn't be created. Returns <code>undef</code> if the new instance didn't |
876 | initialise perl, and the terminal object otherwise. The <code>init</code> and |
987 | initialise perl, and the terminal object otherwise. The <code>init</code> and |
877 | <a href="#item_start"><code>start</code></a> hooks will be called during this call.</p> |
988 | <a href="#item_start"><code>start</code></a> hooks will be called before this call returns, and are free to |
|
|
989 | refer to global data (which is race free).</p> |
878 | </dd> |
990 | </dd> |
879 | <p></p> |
991 | <p></p> |
880 | <dt><strong><a name="item_destroy">$term->destroy</a></strong><br /> |
992 | <dt><strong><a name="item_destroy">$term->destroy</a></strong><br /> |
881 | </dt> |
993 | </dt> |
882 | <dd> |
994 | <dd> |
… | |
… | |
1141 | <p>Normally its not a good idea to use this function, as programs might be |
1253 | <p>Normally its not a good idea to use this function, as programs might be |
1142 | confused by changes in cursor position or scrolling. Its useful inside a |
1254 | confused by changes in cursor position or scrolling. Its useful inside a |
1143 | <code>on_add_lines</code> hook, though.</p> |
1255 | <code>on_add_lines</code> hook, though.</p> |
1144 | </dd> |
1256 | </dd> |
1145 | <p></p> |
1257 | <p></p> |
|
|
1258 | <dt><strong><a name="item_scr_change_screen">$term->scr_change_screen ($screen)</a></strong><br /> |
|
|
1259 | </dt> |
|
|
1260 | <dd> |
|
|
1261 | Switch to given screen - 0 primary, 1 secondary. |
|
|
1262 | </dd> |
|
|
1263 | <p></p> |
1146 | <dt><strong><a name="item_cmd_parse">$term->cmd_parse ($octets)</a></strong><br /> |
1264 | <dt><strong><a name="item_cmd_parse">$term->cmd_parse ($octets)</a></strong><br /> |
1147 | </dt> |
1265 | </dt> |
1148 | <dd> |
1266 | <dd> |
1149 | Similar to <a href="#item_scr_add_lines"><code>scr_add_lines</code></a>, but the argument must be in the |
1267 | Similar to <a href="#item_scr_add_lines"><code>scr_add_lines</code></a>, but the argument must be in the |
1150 | locale-specific encoding of the terminal and can contain command sequences |
1268 | locale-specific encoding of the terminal and can contain command sequences |
… | |
… | |
1166 | be used to suppress input and output handling to the pty/tty. See the |
1284 | be used to suppress input and output handling to the pty/tty. See the |
1167 | description of <a href="#item_events"><code>urxvt::timer->events</code></a>. Make sure to always restore |
1285 | description of <a href="#item_events"><code>urxvt::timer->events</code></a>. Make sure to always restore |
1168 | the previous value. |
1286 | the previous value. |
1169 | </dd> |
1287 | </dd> |
1170 | <p></p> |
1288 | <p></p> |
|
|
1289 | <dt><strong><a name="item_pty_fd">$fd = $term->pty_fd</a></strong><br /> |
|
|
1290 | </dt> |
|
|
1291 | <dd> |
|
|
1292 | Returns the master file descriptor for the pty in use, or <code>-1</code> if no pty |
|
|
1293 | is used. |
|
|
1294 | </dd> |
|
|
1295 | <p></p> |
1171 | <dt><strong><a name="item_parent">$windowid = $term->parent</a></strong><br /> |
1296 | <dt><strong><a name="item_parent">$windowid = $term->parent</a></strong><br /> |
1172 | </dt> |
1297 | </dt> |
1173 | <dd> |
1298 | <dd> |
1174 | Return the window id of the toplevel window. |
1299 | Return the window id of the toplevel window. |
1175 | </dd> |
1300 | </dd> |
… | |
… | |
1189 | <dd> |
1314 | <dd> |
1190 | <pre> |
1315 | <pre> |
1191 | $term->vt_emask_add (urxvt::PointerMotionMask);</pre> |
1316 | $term->vt_emask_add (urxvt::PointerMotionMask);</pre> |
1192 | </dd> |
1317 | </dd> |
1193 | <p></p> |
1318 | <p></p> |
|
|
1319 | <dt><strong><a name="item_focus_in">$term->focus_in</a></strong><br /> |
|
|
1320 | </dt> |
|
|
1321 | <dt><strong><a name="item_focus_out">$term->focus_out</a></strong><br /> |
|
|
1322 | </dt> |
|
|
1323 | <dt><strong><a name="item_key_press">$term->key_press ($state, $keycode[, $time])</a></strong><br /> |
|
|
1324 | </dt> |
|
|
1325 | <dt><strong><a name="item_key_release">$term->key_release ($state, $keycode[, $time])</a></strong><br /> |
|
|
1326 | </dt> |
|
|
1327 | <dd> |
|
|
1328 | Deliver various fake events to to terminal. |
|
|
1329 | </dd> |
|
|
1330 | <p></p> |
1194 | <dt><strong><a name="item_width">$window_width = $term->width</a></strong><br /> |
1331 | <dt><strong><a name="item_width">$window_width = $term->width</a></strong><br /> |
1195 | </dt> |
1332 | </dt> |
1196 | <dt><strong><a name="item_height">$window_height = $term->height</a></strong><br /> |
1333 | <dt><strong><a name="item_height">$window_height = $term->height</a></strong><br /> |
1197 | </dt> |
1334 | </dt> |
1198 | <dt><strong><a name="item_fwidth">$font_width = $term->fwidth</a></strong><br /> |
1335 | <dt><strong><a name="item_fwidth">$font_width = $term->fwidth</a></strong><br /> |
… | |
… | |
1245 | <dt><strong><a name="item_modnumlockmask">$modifiermask = $term->ModNumLockMask</a></strong><br /> |
1382 | <dt><strong><a name="item_modnumlockmask">$modifiermask = $term->ModNumLockMask</a></strong><br /> |
1246 | </dt> |
1383 | </dt> |
1247 | <dd> |
1384 | <dd> |
1248 | Return the modifier masks corresponding to the ``ISO Level 3 Shift'' (often |
1385 | Return the modifier masks corresponding to the ``ISO Level 3 Shift'' (often |
1249 | AltGr), the meta key (often Alt) and the num lock key, if applicable. |
1386 | AltGr), the meta key (often Alt) and the num lock key, if applicable. |
|
|
1387 | </dd> |
|
|
1388 | <p></p> |
|
|
1389 | <dt><strong><a name="item_current_screen">$screen = $term->current_screen</a></strong><br /> |
|
|
1390 | </dt> |
|
|
1391 | <dd> |
|
|
1392 | Returns the currently displayed screen (0 primary, 1 secondary). |
|
|
1393 | </dd> |
|
|
1394 | <p></p> |
|
|
1395 | <dt><strong><a name="item_hidden_cursor">$cursor_is_hidden = $term->hidden_cursor</a></strong><br /> |
|
|
1396 | </dt> |
|
|
1397 | <dd> |
|
|
1398 | Returns wether the cursor is currently hidden or not. |
1250 | </dd> |
1399 | </dd> |
1251 | <p></p> |
1400 | <p></p> |
1252 | <dt><strong><a name="item_view_start">$view_start = $term->view_start ([$newvalue])</a></strong><br /> |
1401 | <dt><strong><a name="item_view_start">$view_start = $term->view_start ([$newvalue])</a></strong><br /> |
1253 | </dt> |
1402 | </dt> |
1254 | <dd> |
1403 | <dd> |
… | |
… | |
1283 | to replace only parts of a line. The font index in the rendition will |
1432 | to replace only parts of a line. The font index in the rendition will |
1284 | automatically be updated.</p> |
1433 | automatically be updated.</p> |
1285 | </dd> |
1434 | </dd> |
1286 | <dd> |
1435 | <dd> |
1287 | <p><a href="#item__24text"><code>$text</code></a> is in a special encoding: tabs and wide characters that use more |
1436 | <p><a href="#item__24text"><code>$text</code></a> is in a special encoding: tabs and wide characters that use more |
1288 | than one cell when displayed are padded with urxvt::NOCHAR characters |
1437 | than one cell when displayed are padded with <code>$urxvt::NOCHAR</code> (chr 65535) |
1289 | (<code>chr 65535</code>). Characters with combining characters and other characters |
1438 | characters. Characters with combining characters and other characters that |
1290 | that do not fit into the normal tetx encoding will be replaced with |
1439 | do not fit into the normal tetx encoding will be replaced with characters |
1291 | characters in the private use area.</p> |
1440 | in the private use area.</p> |
1292 | </dd> |
1441 | </dd> |
1293 | <dd> |
1442 | <dd> |
1294 | <p>You have to obey this encoding when changing text. The advantage is |
1443 | <p>You have to obey this encoding when changing text. The advantage is |
1295 | that <code>substr</code> and similar functions work on screen cells and not on |
1444 | that <code>substr</code> and similar functions work on screen cells and not on |
1296 | characters.</p> |
1445 | characters.</p> |
… | |
… | |
1392 | <dd> |
1541 | <dd> |
1393 | Converts rxvt-unicodes text reprsentation into a perl string. See |
1542 | Converts rxvt-unicodes text reprsentation into a perl string. See |
1394 | <a href="#item_row_t"><code>$term->ROW_t</code></a> for details. |
1543 | <a href="#item_row_t"><code>$term->ROW_t</code></a> for details. |
1395 | </dd> |
1544 | </dd> |
1396 | <p></p> |
1545 | <p></p> |
1397 | <dt><strong><a name="item_grab_button">$success = $term->grab_button ($button, $modifiermask)</a></strong><br /> |
1546 | <dt><strong><a name="item_grab_button">$success = $term->grab_button ($button, $modifiermask[, $window = $term->vt])</a></strong><br /> |
1398 | </dt> |
1547 | </dt> |
|
|
1548 | <dt><strong><a name="item_ungrab_button">$term->ungrab_button ($button, $modifiermask[, $window = $term->vt])</a></strong><br /> |
|
|
1549 | </dt> |
1399 | <dd> |
1550 | <dd> |
1400 | Registers a synchronous button grab. See the XGrabButton manpage. |
1551 | Register/unregister a synchronous button grab. See the XGrabButton |
|
|
1552 | manpage. |
1401 | </dd> |
1553 | </dd> |
1402 | <p></p> |
1554 | <p></p> |
1403 | <dt><strong><a name="item_grab">$success = $term->grab ($eventtime[, $sync])</a></strong><br /> |
1555 | <dt><strong><a name="item_grab">$success = $term->grab ($eventtime[, $sync])</a></strong><br /> |
1404 | </dt> |
1556 | </dt> |
1405 | <dd> |
1557 | <dd> |
… | |
… | |
1430 | </dt> |
1582 | </dt> |
1431 | <dd> |
1583 | <dd> |
1432 | Calls XUngrab for the most recent grab. Is called automatically on |
1584 | Calls XUngrab for the most recent grab. Is called automatically on |
1433 | evaluation errors, as it is better to lose the grab in the error case as |
1585 | evaluation errors, as it is better to lose the grab in the error case as |
1434 | the session. |
1586 | the session. |
|
|
1587 | </dd> |
|
|
1588 | <p></p> |
|
|
1589 | <dt><strong><a name="item_xinternatom">$atom = $term->XInternAtom ($atom_name[, $only_if_exists])</a></strong><br /> |
|
|
1590 | </dt> |
|
|
1591 | <dt><strong><a name="item_xgetatomname">$atom_name = $term->XGetAtomName ($atom)</a></strong><br /> |
|
|
1592 | </dt> |
|
|
1593 | <dt><strong><a name="item_xlistproperties">@atoms = $term->XListProperties ($window)</a></strong><br /> |
|
|
1594 | </dt> |
|
|
1595 | <dt><strong><a name="item_xgetwindowproperty">($type,$format,$octets) = $term->XGetWindowProperty ($window, $property)</a></strong><br /> |
|
|
1596 | </dt> |
|
|
1597 | <dt><strong><a name="item_xchangewindowproperty">$term->XChangeWindowProperty ($window, $property, $type, $format, $octets)</a></strong><br /> |
|
|
1598 | </dt> |
|
|
1599 | <dt><strong><a name="item_xdeleteproperty">$term->XDeleteProperty ($window, $property)</a></strong><br /> |
|
|
1600 | </dt> |
|
|
1601 | <dt><strong><a name="item_defaultrootwindow">$window = $term->DefaultRootWindow</a></strong><br /> |
|
|
1602 | </dt> |
|
|
1603 | <dt><strong><a name="item_xreparentwindow">$term->XReparentWindow ($window, $parent, [$x, $y])</a></strong><br /> |
|
|
1604 | </dt> |
|
|
1605 | <dt><strong><a name="item_xmapwindow">$term->XMapWindow ($window)</a></strong><br /> |
|
|
1606 | </dt> |
|
|
1607 | <dt><strong><a name="item_xunmapwindow">$term->XUnmapWindow ($window)</a></strong><br /> |
|
|
1608 | </dt> |
|
|
1609 | <dt><strong><a name="item_xmoveresizewindow">$term->XMoveResizeWindow ($window, $x, $y, $width, $height)</a></strong><br /> |
|
|
1610 | </dt> |
|
|
1611 | <dt><strong><a name="item_xtranslatecoordinates">($x, $y, $child_window) = $term->XTranslateCoordinates ($src, $dst, $x, $y)</a></strong><br /> |
|
|
1612 | </dt> |
|
|
1613 | <dt><strong><a name="item_xchangeinput">$term->XChangeInput ($window, $add_events[, $del_events])</a></strong><br /> |
|
|
1614 | </dt> |
|
|
1615 | <dd> |
|
|
1616 | Various X or X-related functions. The <code>$term</code> object only serves as |
|
|
1617 | the source of the display, otherwise those functions map more-or-less |
|
|
1618 | directory onto the X functions of the same name. |
1435 | </dd> |
1619 | </dd> |
1436 | <p></p></dl> |
1620 | <p></p></dl> |
1437 | <p> |
1621 | <p> |
1438 | </p> |
1622 | </p> |
1439 | <h2><a name="the_urxvt__popup_class">The <code>urxvt::popup</code> Class</a></h2> |
1623 | <h2><a name="the_urxvt__popup_class">The <code>urxvt::popup</code> Class</a></h2> |