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.20 by root, Tue Jan 3 04:18:47 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
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.
126 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.
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.
131 143
193correct place, e.g. on stderr of the connecting urxvtc client. 205correct place, e.g. on stderr of the connecting urxvtc client.
194 206
195=item $time = urxvt::NOW 207=item $time = urxvt::NOW
196 208
197Returns the "current time" (as per the event loop). 209Returns the "current time" (as per the event loop).
210
211=back
198 212
199=head2 RENDITION 213=head2 RENDITION
200 214
201Rendition bitsets contain information about colour, font, font styles and 215Rendition bitsets contain information about colour, font, font styles and
202similar information for each screen cell. 216similar information for each screen cell.
358 return 1 if $v->($term, @_); 372 return 1 if $v->($term, @_);
359 } 373 }
360 374
361 0 375 0
362} 376}
363
364=back
365 377
366=head2 The C<urxvt::term> Class 378=head2 The C<urxvt::term> Class
367 379
368=over 4 380=over 4
369 381
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