… | |
… | |
341 | URxvt.remote-selection.store: rsh ruth 'cat >/tmp/distributed-selection' |
341 | URxvt.remote-selection.store: rsh ruth 'cat >/tmp/distributed-selection' |
342 | URxvt.remote-selection.fetch: rsh ruth 'cat /tmp/distributed-selection' |
342 | URxvt.remote-selection.fetch: rsh ruth 'cat /tmp/distributed-selection' |
343 | |
343 | |
344 | =item selection-pastebin |
344 | =item selection-pastebin |
345 | |
345 | |
346 | This is a little rarely useful extension that Uploads the selection as |
346 | This is a little rarely useful extension that uploads the selection as |
347 | textfile to a remote site (or does other things). (The implementation is |
347 | textfile to a remote site (or does other things). (The implementation is |
348 | not currently secure for use in a multiuser environment as it writes to |
348 | not currently secure for use in a multiuser environment as it writes to |
349 | F</tmp> directly.). |
349 | F</tmp> directly.). |
350 | |
350 | |
351 | It listens to the C<selection-pastebin:remote-pastebin> keyboard command, |
351 | It listens to the C<selection-pastebin:remote-pastebin> keyboard command, |
… | |
… | |
370 | |
370 | |
371 | URxvt.selection-pastebin.url: http://www.ta-sa.org/files/txt/% |
371 | URxvt.selection-pastebin.url: http://www.ta-sa.org/files/txt/% |
372 | |
372 | |
373 | I<Note to xrdb users:> xrdb uses the C preprocessor, which might interpret |
373 | I<Note to xrdb users:> xrdb uses the C preprocessor, which might interpret |
374 | the double C</> characters as comment start. Use C<\057\057> instead, |
374 | the double C</> characters as comment start. Use C<\057\057> instead, |
375 | which works regardless of wether xrdb is used to parse the resource file |
375 | which works regardless of whether xrdb is used to parse the resource file |
376 | or not. |
376 | or not. |
377 | |
377 | |
378 | =item macosx-pastebin and macosx-pastebin-native |
378 | =item macosx-clipboard and macosx-clipboard-native |
379 | |
379 | |
380 | These two modules implement an extended clipboard for Mac OS X. They are |
380 | These two modules implement an extended clipboard for Mac OS X. They are |
381 | used like this: |
381 | used like this: |
382 | |
382 | |
383 | URxvt.perl-ext-common: default,macosx-clipboard |
383 | URxvt.perl-ext-common: default,macosx-clipboard |
384 | URxvt.keysym.M-c: perl:macosx-clipboard:copy |
384 | URxvt.keysym.M-c: perl:macosx-clipboard:copy |
385 | URxvt.keysym.M-v: perl:macosx-clipboard:paste |
385 | URxvt.keysym.M-v: perl:macosx-clipboard:paste |
386 | |
386 | |
387 | The difference between them is that the native variant requires a |
387 | The difference between them is that the native variant requires a |
388 | perl from apple's devkit or so, and C<maxosx-pastebin> requires the |
388 | perl from apple's devkit or so, and C<macosx-clipboard> requires the |
389 | C<Mac::Pasteboard> module, works with other perls, has fewer bugs, is |
389 | C<Mac::Pasteboard> module, works with other perls, has fewer bugs, is |
390 | simpler etc. etc. |
390 | simpler etc. etc. |
391 | |
391 | |
392 | =item example-refresh-hooks |
392 | =item example-refresh-hooks |
393 | |
393 | |
… | |
… | |
417 | |
417 | |
418 | =over 4 |
418 | =over 4 |
419 | |
419 | |
420 | =item $text |
420 | =item $text |
421 | |
421 | |
422 | Rxvt-unicodes special way of encoding text, where one "unicode" character |
422 | Rxvt-unicode's special way of encoding text, where one "unicode" character |
423 | always represents one screen cell. See L<ROW_t> for a discussion of this format. |
423 | always represents one screen cell. See L<ROW_t> for a discussion of this format. |
424 | |
424 | |
425 | =item $string |
425 | =item $string |
426 | |
426 | |
427 | A perl text string, with an emphasis on I<text>. It can store all unicode |
427 | A perl text string, with an emphasis on I<text>. It can store all unicode |
… | |
… | |
644 | resource in the @@RXVT_NAME@@(1) manpage). |
644 | resource in the @@RXVT_NAME@@(1) manpage). |
645 | |
645 | |
646 | The event is simply the action string. This interface is assumed to change |
646 | The event is simply the action string. This interface is assumed to change |
647 | slightly in the future. |
647 | slightly in the future. |
648 | |
648 | |
649 | =item on_resize_all_windows $tern, $new_width, $new_height |
649 | =item on_resize_all_windows $term, $new_width, $new_height |
650 | |
650 | |
651 | Called just after the new window size has been calculated, but before |
651 | Called just after the new window size has been calculated, but before |
652 | windows are actually being resized or hints are being set. If this hook |
652 | windows are actually being resized or hints are being set. If this hook |
653 | returns TRUE, setting of the window hints is being skipped. |
653 | returns TRUE, setting of the window hints is being skipped. |
654 | |
654 | |
… | |
… | |
688 | |
688 | |
689 | =item on_map_notify $term, $event |
689 | =item on_map_notify $term, $event |
690 | |
690 | |
691 | =item on_unmap_notify $term, $event |
691 | =item on_unmap_notify $term, $event |
692 | |
692 | |
693 | Called whenever the corresponding X event is received for the terminal If |
693 | Called whenever the corresponding X event is received for the terminal. If |
694 | the hook returns true, then the even will be ignored by rxvt-unicode. |
694 | the hook returns true, then the event will be ignored by rxvt-unicode. |
695 | |
695 | |
696 | The event is a hash with most values as named by Xlib (see the XEvent |
696 | The event is a hash with most values as named by Xlib (see the XEvent |
697 | manpage), with the additional members C<row> and C<col>, which are the |
697 | manpage), with the additional members C<row> and C<col>, which are the |
698 | (real, not screen-based) row and column under the mouse cursor. |
698 | (real, not screen-based) row and column under the mouse cursor. |
699 | |
699 | |
… | |
… | |
708 | |
708 | |
709 | =item on_wm_delete_window $term, $event |
709 | =item on_wm_delete_window $term, $event |
710 | |
710 | |
711 | Called when various types of ClientMessage events are received (all with |
711 | Called when various types of ClientMessage events are received (all with |
712 | format=32, WM_PROTOCOLS or WM_PROTOCOLS:WM_DELETE_WINDOW). |
712 | format=32, WM_PROTOCOLS or WM_PROTOCOLS:WM_DELETE_WINDOW). |
|
|
713 | |
|
|
714 | =item on_bell $term |
|
|
715 | |
|
|
716 | Called on receipt of a bell character. |
713 | |
717 | |
714 | =back |
718 | =back |
715 | |
719 | |
716 | =cut |
720 | =cut |
717 | |
721 | |
… | |
… | |
1372 | |
1376 | |
1373 | =item ($row, $col) = $term->selection_beg ([$row, $col]) |
1377 | =item ($row, $col) = $term->selection_beg ([$row, $col]) |
1374 | |
1378 | |
1375 | =item ($row, $col) = $term->selection_end ([$row, $col]) |
1379 | =item ($row, $col) = $term->selection_end ([$row, $col]) |
1376 | |
1380 | |
1377 | Return the current values of the selection mark, begin or end positions, |
1381 | Return the current values of the selection mark, begin or end positions. |
1378 | and optionally set them to new values. |
1382 | |
|
|
1383 | When arguments are given, then the selection coordinates are set to |
|
|
1384 | C<$row> and C<$col>, and the selection screen is set to the current |
|
|
1385 | screen. |
|
|
1386 | |
|
|
1387 | =item $screen = $term->selection_screen ([$screen]) |
|
|
1388 | |
|
|
1389 | Returns the current selection screen, and then optionally sets it. |
1379 | |
1390 | |
1380 | =item $term->selection_make ($eventtime[, $rectangular]) |
1391 | =item $term->selection_make ($eventtime[, $rectangular]) |
1381 | |
1392 | |
1382 | Tries to make a selection as set by C<selection_beg> and |
1393 | Tries to make a selection as set by C<selection_beg> and |
1383 | C<selection_end>. If C<$rectangular> is true (default: false), a |
1394 | C<selection_end>. If C<$rectangular> is true (default: false), a |
1384 | rectangular selection will be made. This is the prefered function to make |
1395 | rectangular selection will be made. This is the preferred function to make |
1385 | a selection. |
1396 | a selection. |
1386 | |
1397 | |
1387 | =item $success = $term->selection_grab ($eventtime) |
1398 | =item $success = $term->selection_grab ($eventtime[, $clipboard]) |
1388 | |
1399 | |
1389 | Try to request the primary selection text from the server (for example, as |
1400 | Try to acquire ownership of the primary (clipboard if C<$clipboard> is |
|
|
1401 | true) selection from the server. The corresponding text can be set |
1390 | set by the next method). No visual feedback will be given. This function |
1402 | with the next method. No visual feedback will be given. This function |
1391 | is mostly useful from within C<on_sel_grab> hooks. |
1403 | is mostly useful from within C<on_sel_grab> hooks. |
1392 | |
1404 | |
1393 | =item $oldtext = $term->selection ([$newtext]) |
1405 | =item $oldtext = $term->selection ([$newtext, $clipboard]) |
1394 | |
1406 | |
1395 | Return the current selection text and optionally replace it by C<$newtext>. |
1407 | Return the current selection (clipboard if C<$clipboard> is true) text |
|
|
1408 | and optionally replace it by C<$newtext>. |
|
|
1409 | |
|
|
1410 | =item $term->selection_clear ([$clipboard]) |
|
|
1411 | |
|
|
1412 | Revoke ownership of the primary (clipboard if C<$clipboard> is true) selection. |
1396 | |
1413 | |
1397 | =item $term->overlay_simple ($x, $y, $text) |
1414 | =item $term->overlay_simple ($x, $y, $text) |
1398 | |
1415 | |
1399 | Create a simple multi-line overlay box. See the next method for details. |
1416 | Create a simple multi-line overlay box. See the next method for details. |
1400 | |
1417 | |
… | |
… | |
1528 | locale-specific encoding of the terminal and can contain command sequences |
1545 | locale-specific encoding of the terminal and can contain command sequences |
1529 | (escape codes) that will be interpreted. |
1546 | (escape codes) that will be interpreted. |
1530 | |
1547 | |
1531 | =item $term->tt_write ($octets) |
1548 | =item $term->tt_write ($octets) |
1532 | |
1549 | |
1533 | Write the octets given in C<$data> to the tty (i.e. as program input). To |
1550 | Write the octets given in C<$octets> to the tty (i.e. as program input). To |
1534 | pass characters instead of octets, you should convert your strings first |
1551 | pass characters instead of octets, you should convert your strings first |
1535 | to the locale-specific encoding using C<< $term->locale_encode >>. |
1552 | to the locale-specific encoding using C<< $term->locale_encode >>. |
1536 | |
1553 | |
1537 | =item $old_events = $term->pty_ev_events ([$new_events]) |
1554 | =item $old_events = $term->pty_ev_events ([$new_events]) |
1538 | |
1555 | |
… | |
… | |
1854 | Calls XAllowEvents with both ReplayPointer and ReplayKeyboard for the most |
1871 | Calls XAllowEvents with both ReplayPointer and ReplayKeyboard for the most |
1855 | recent grab. |
1872 | recent grab. |
1856 | |
1873 | |
1857 | =item $term->ungrab |
1874 | =item $term->ungrab |
1858 | |
1875 | |
1859 | Calls XUngrab for the most recent grab. Is called automatically on |
1876 | Calls XUngrabPointer and XUngrabKeyboard for the most recent grab. Is called automatically on |
1860 | evaluation errors, as it is better to lose the grab in the error case as |
1877 | evaluation errors, as it is better to lose the grab in the error case as |
1861 | the session. |
1878 | the session. |
1862 | |
1879 | |
1863 | =item $atom = $term->XInternAtom ($atom_name[, $only_if_exists]) |
1880 | =item $atom = $term->XInternAtom ($atom_name[, $only_if_exists]) |
1864 | |
1881 | |
… | |
… | |
1886 | |
1903 | |
1887 | =item $term->XChangeInput ($window, $add_events[, $del_events]) |
1904 | =item $term->XChangeInput ($window, $add_events[, $del_events]) |
1888 | |
1905 | |
1889 | Various X or X-related functions. The C<$term> object only serves as |
1906 | Various X or X-related functions. The C<$term> object only serves as |
1890 | the source of the display, otherwise those functions map more-or-less |
1907 | the source of the display, otherwise those functions map more-or-less |
1891 | directory onto the X functions of the same name. |
1908 | directly onto the X functions of the same name. |
1892 | |
1909 | |
1893 | =back |
1910 | =back |
1894 | |
1911 | |
1895 | =cut |
1912 | =cut |
1896 | |
1913 | |