… | |
… | |
39 | |
39 | |
40 | =over 4 |
40 | =over 4 |
41 | |
41 | |
42 | =item selection |
42 | =item selection |
43 | |
43 | |
44 | Miscellaneous selection modifications. |
44 | Intelligent selection. This etxension tries to be more intelligent when the user |
|
|
45 | extends selections (double-click). |
|
|
46 | |
|
|
47 | It also offers the following bindable event: |
45 | |
48 | |
46 | =over 4 |
49 | =over 4 |
47 | |
50 | |
48 | =item rot13 |
51 | =item rot13 |
49 | |
52 | |
… | |
… | |
121 | Called whenever a selection has been copied, but before the selection is |
124 | Called whenever a selection has been copied, but before the selection is |
122 | requested from the server. The selection text can be queried and changed |
125 | requested from the server. The selection text can be queried and changed |
123 | by calling C<< $term->selection >>. |
126 | by calling C<< $term->selection >>. |
124 | |
127 | |
125 | Returning a true value aborts selection grabbing. It will still be hilighted. |
128 | Returning a true value aborts selection grabbing. It will still be hilighted. |
|
|
129 | |
|
|
130 | =item on_sel_extend $term |
|
|
131 | |
|
|
132 | Called whenever the user tries to extend the selection (e.g. with a double |
|
|
133 | click) and is either supposed to return false (normal operation), or |
|
|
134 | should extend the selection itelf and return true to suppress the built-in |
|
|
135 | processing. |
|
|
136 | |
|
|
137 | See the F<selection> example extension. |
126 | |
138 | |
127 | =item on_focus_in $term |
139 | =item on_focus_in $term |
128 | |
140 | |
129 | Called whenever the window gets the keyboard focus, before urxvt does |
141 | Called whenever the window gets the keyboard focus, before urxvt does |
130 | focus in processing. |
142 | focus in processing. |
… | |
… | |
461 | right/bottom side, respectively. |
473 | right/bottom side, respectively. |
462 | |
474 | |
463 | This method returns an urxvt::overlay object. The overlay will be visible |
475 | This method returns an urxvt::overlay object. The overlay will be visible |
464 | as long as the perl object is referenced. |
476 | as long as the perl object is referenced. |
465 | |
477 | |
466 | Currently, the only method on the C<urxvt::overlay> object is C<set>: |
478 | The methods currently supported on C<urxvt::overlay> objects are: |
|
|
479 | |
|
|
480 | =over 4 |
467 | |
481 | |
468 | =item $overlay->set ($x, $y, $text, $rend) |
482 | =item $overlay->set ($x, $y, $text, $rend) |
469 | |
483 | |
470 | Similar to C<< $term->ROW_t >> and C<< $term->ROW_r >> in that it puts |
484 | Similar to C<< $term->ROW_t >> and C<< $term->ROW_r >> in that it puts |
471 | text in rxvt-unicode's special encoding and an array of rendition values |
485 | text in rxvt-unicode's special encoding and an array of rendition values |
472 | at a specific position inside the overlay. |
486 | at a specific position inside the overlay. |
|
|
487 | |
|
|
488 | =item $overlay->hide |
|
|
489 | |
|
|
490 | If visible, hide the overlay, but do not destroy it. |
|
|
491 | |
|
|
492 | =item $overlay->show |
|
|
493 | |
|
|
494 | If hidden, display the overlay again. |
|
|
495 | |
|
|
496 | =back |
473 | |
497 | |
474 | =item $cellwidth = $term->strwidth $string |
498 | =item $cellwidth = $term->strwidth $string |
475 | |
499 | |
476 | Returns the number of screen-cells this string would need. Correctly |
500 | Returns the number of screen-cells this string would need. Correctly |
477 | accounts for wide and combining characters. |
501 | accounts for wide and combining characters. |