… | |
… | |
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 | |
… | |
… | |
169 | This transforms the terminal into a tabbar with additional terminals, that |
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 |
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 |
171 | displays a "[NEW]" button, which, when clicked, will add a new tab, followed by one |
172 | button per tab. |
172 | button per tab. |
173 | |
173 | |
174 | Clicking a button will activate that tab. Pressing Shift-Left and |
174 | Clicking a button will activate that tab. Pressing B<Shift-Left> and |
175 | Shift-Right will switch to the tab left or right of the current one. |
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. |
176 | |
177 | |
177 | =item mark-urls |
178 | =item mark-urls |
178 | |
179 | |
179 | 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 |
180 | make them clickable. When middle-clicked, the program specified in the |
181 | make them clickable. When middle-clicked, the program specified in the |
… | |
… | |
475 | Called wheneever the window loses keyboard focus, before rxvt-unicode does |
476 | Called wheneever the window loses keyboard focus, before rxvt-unicode does |
476 | focus out processing. |
477 | focus out processing. |
477 | |
478 | |
478 | =item on_configure_notify $term, $event |
479 | =item on_configure_notify $term, $event |
479 | |
480 | |
|
|
481 | =item on_property_notify $term, $event |
|
|
482 | |
480 | =item on_key_press $term, $event, $keysym, $octets |
483 | =item on_key_press $term, $event, $keysym, $octets |
481 | |
484 | |
482 | =item on_key_release $term, $event, $keysym |
485 | =item on_key_release $term, $event, $keysym |
483 | |
486 | |
484 | =item on_button_press $term, $event |
487 | =item on_button_press $term, $event |
… | |
… | |
493 | |
496 | |
494 | Called whenever the corresponding X event is received for the terminal If |
497 | Called whenever the corresponding X event is received for the terminal If |
495 | the hook returns true, then the even will be ignored by rxvt-unicode. |
498 | the hook returns true, then the even will be ignored by rxvt-unicode. |
496 | |
499 | |
497 | The event is a hash with most values as named by Xlib (see the XEvent |
500 | The event is a hash with most values as named by Xlib (see the XEvent |
498 | manpage), with the additional members C<row> and C<col>, which are the row |
501 | manpage), with the additional members C<row> and C<col>, which are the |
499 | and column under the mouse cursor. |
502 | (real, not screen-based) row and column under the mouse cursor. |
500 | |
503 | |
501 | C<on_key_press> additionally receives the string rxvt-unicode would |
504 | C<on_key_press> additionally receives the string rxvt-unicode would |
502 | output, if any, in locale-specific encoding. |
505 | output, if any, in locale-specific encoding. |
503 | |
506 | |
504 | subwindow. |
507 | subwindow. |
… | |
… | |
1565 | |
1568 | |
1566 | Calls XUngrab for the most recent grab. Is called automatically on |
1569 | Calls XUngrab for the most recent grab. Is called automatically on |
1567 | 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 |
1568 | the session. |
1571 | the session. |
1569 | |
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 | |
1570 | =back |
1603 | =back |
1571 | |
1604 | |
1572 | =cut |
1605 | =cut |
1573 | |
1606 | |
1574 | package urxvt::popup; |
1607 | package urxvt::popup; |