… | |
… | |
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 |
… | |
… | |
464 | |
475 | |
465 | Called wheneever the window loses keyboard focus, before rxvt-unicode does |
476 | Called wheneever the window loses keyboard focus, before rxvt-unicode does |
466 | focus out processing. |
477 | focus out processing. |
467 | |
478 | |
468 | =item on_configure_notify $term, $event |
479 | =item on_configure_notify $term, $event |
|
|
480 | |
|
|
481 | =item on_property_notify $term, $event |
469 | |
482 | |
470 | =item on_key_press $term, $event, $keysym, $octets |
483 | =item on_key_press $term, $event, $keysym, $octets |
471 | |
484 | |
472 | =item on_key_release $term, $event, $keysym |
485 | =item on_key_release $term, $event, $keysym |
473 | |
486 | |
… | |
… | |
1555 | |
1568 | |
1556 | Calls XUngrab for the most recent grab. Is called automatically on |
1569 | Calls XUngrab for the most recent grab. Is called automatically on |
1557 | evaluation errors, as it is better to lose the grab in the error case as |
1570 | evaluation errors, as it is better to lose the grab in the error case as |
1558 | the session. |
1571 | the session. |
1559 | |
1572 | |
|
|
1573 | =item $atom = $term->XInternAtom ($atom_name[, $only_if_exists]) |
|
|
1574 | |
|
|
1575 | =item $atom_name = $term->XGetAtomName ($atom) |
|
|
1576 | |
|
|
1577 | =item @atoms = $term->XListProperties ($window) |
|
|
1578 | |
|
|
1579 | =item ($type,$format,$octets) = $term->XGetWindowProperty ($window, $property) |
|
|
1580 | |
|
|
1581 | =item $term->XChangeWindowProperty ($window, $property, $type, $format, $octets) |
|
|
1582 | |
|
|
1583 | =item $term->XDeleteProperty ($window, $property) |
|
|
1584 | |
|
|
1585 | =item $window = $term->DefaultRootWindow |
|
|
1586 | |
|
|
1587 | =item $term->XReparentWindow ($window, $parent, [$x, $y]) |
|
|
1588 | |
|
|
1589 | =item $term->XMapWindow ($window) |
|
|
1590 | |
|
|
1591 | =item $term->XUnmapWindow ($window) |
|
|
1592 | |
|
|
1593 | =item $term->XMoveResizeWindow ($window, $x, $y, $width, $height) |
|
|
1594 | |
|
|
1595 | =item ($x, $y, $child_window) = $term->XTranslateCoordinates ($src, $dst, $x, $y) |
|
|
1596 | |
|
|
1597 | =item $term->XChangeInput ($window, $add_events[, $del_events]) |
|
|
1598 | |
|
|
1599 | Various X or X-related functions. The C<$term> object only serves as |
|
|
1600 | the source of the display, otherwise those functions map more-or-less |
|
|
1601 | directory onto the X functions of the same name. |
|
|
1602 | |
1560 | =back |
1603 | =back |
1561 | |
1604 | |
1562 | =cut |
1605 | =cut |
1563 | |
1606 | |
1564 | package urxvt::popup; |
1607 | package urxvt::popup; |