ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/urxvt.pm
(Generate patch)

Comparing rxvt-unicode/src/urxvt.pm (file contents):
Revision 1.21 by root, Tue Jan 3 04:20:37 2006 UTC vs.
Revision 1.22 by root, Tue Jan 3 19:10:54 2006 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines