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.83 by root, Thu Jan 12 01:38:37 2006 UTC vs.
Revision 1.85 by root, Thu Jan 12 03:32:56 2006 UTC

230=item on_sel_extend $term 230=item on_sel_extend $term
231 231
232Called whenever the user tries to extend the selection (e.g. with a double 232Called whenever the user tries to extend the selection (e.g. with a double
233click) and is either supposed to return false (normal operation), or 233click) and is either supposed to return false (normal operation), or
234should extend the selection itelf and return true to suppress the built-in 234should extend the selection itelf and return true to suppress the built-in
235processing. 235processing. This can happen multiple times, as long as the callback
236returns true, it will be called on every further click by the user and is
237supposed to enlarge the selection more and more, if possible.
236 238
237See the F<selection> example extension. 239See the F<selection> example extension.
238 240
239=item on_view_change $term, $offset 241=item on_view_change $term, $offset
240 242
595 if ($@) { 597 if ($@) {
596 $TERM->ungrab; # better to lose the grab than the session 598 $TERM->ungrab; # better to lose the grab than the session
597 warn $@; 599 warn $@;
598 } 600 }
599 } 601 }
602
603 verbose 11, "$HOOKNAME[$htype] returning <$retval>"
604 if $verbosity >= 11;
600 } 605 }
601 606
602 if ($htype == 1) { # DESTROY 607 if ($htype == 1) { # DESTROY
603 if (my $hook = delete $TERM->{_hook}) { 608 if (my $hook = delete $TERM->{_hook}) {
604 for my $htype (0..$#$hook) { 609 for my $htype (0..$#$hook) {
613 # clear package 618 # clear package
614 %$TERM = (); 619 %$TERM = ();
615 } 620 }
616 621
617 $retval 622 $retval
623}
624
625sub exec_async(@) {
626 my $pid = fork;
627
628 return
629 if !defined $pid or $pid;
630
631 %ENV = %{ $TERM->env };
632
633 exec @_;
634 _exit 255;
618} 635}
619 636
620# urxvt::term::extension 637# urxvt::term::extension
621 638
622package urxvt::term::extension; 639package urxvt::term::extension;
1206Return the row number of the first/last row of the line, respectively. 1223Return the row number of the first/last row of the line, respectively.
1207 1224
1208=item $offset = $line->offset_of ($row, $col) 1225=item $offset = $line->offset_of ($row, $col)
1209 1226
1210Returns the character offset of the given row|col pair within the logical 1227Returns the character offset of the given row|col pair within the logical
1211line. 1228line. Works for rows outside the line, too, and returns corresponding
1229offsets outside the string.
1212 1230
1213=item ($row, $col) = $line->coord_of ($offset) 1231=item ($row, $col) = $line->coord_of ($offset)
1214 1232
1215Translates a string offset into terminal coordinates again. 1233Translates a string offset into terminal coordinates again.
1216 1234
1571 1589
1572=item == 0 - fatal messages 1590=item == 0 - fatal messages
1573 1591
1574=item >= 3 - script loading and management 1592=item >= 3 - script loading and management
1575 1593
1576=item >=10 - all events received 1594=item >=10 - all called hooks
1595
1596=item >=11 - hook reutrn values
1577 1597
1578=back 1598=back
1579 1599
1580=head1 AUTHOR 1600=head1 AUTHOR
1581 1601

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines