--- rxvt-unicode/src/urxvt.pm 2006/01/12 00:12:40 1.81 +++ rxvt-unicode/src/urxvt.pm 2006/01/12 05:22:47 1.86 @@ -87,8 +87,8 @@ =item mark-urls Uses per-line display filtering (C) to underline urls and -make them clickable. When clicked, the program specified in the resource -C (default C) will be started. +make them clickable. When middle-clicked, the program specified in the +resource C (default C) will be started. =item block-graphics-to-ascii @@ -232,7 +232,9 @@ Called whenever the user tries to extend the selection (e.g. with a double click) and is either supposed to return false (normal operation), or should extend the selection itelf and return true to suppress the built-in -processing. +processing. This can happen multiple times, as long as the callback +returns true, it will be called on every further click by the user and is +supposed to enlarge the selection more and more, if possible. See the F example extension. @@ -498,6 +500,7 @@ urxvt::warn ($msg); }; + # %ENV is the original startup environment delete $ENV{IFS}; delete $ENV{CDPATH}; delete $ENV{BASH_ENV}; @@ -596,6 +599,9 @@ warn $@; } } + + verbose 11, "$HOOKNAME[$htype] returning <$retval>" + if $verbosity >= 11; } if ($htype == 1) { # DESTROY @@ -616,6 +622,18 @@ $retval } +sub exec_async(@) { + my $pid = fork; + + return + if !defined $pid or $pid; + + %ENV = %{ $TERM->env }; + + exec @_; + _exit 255; +} + # urxvt::term::extension package urxvt::term::extension; @@ -899,10 +917,18 @@ Return the current values of the selection mark, begin or end positions, and optionally set them to new values. +=item $term->selection_make ($eventtime[, $rectangular]) + +Tries to make a selection as set by C and +C. If C<$rectangular> is true (default: false), a +rectangular selection will be made. This is the prefered function to make +a selection. + =item $success = $term->selection_grab ($eventtime) -Try to request the primary selection from the server (for example, as set -by the next method). +Try to request the primary selection text from the server (for example, as +set by the next method). No visual feedback will be given. This function +is mostly useful from within C hooks. =item $oldtext = $term->selection ([$newtext]) @@ -1005,15 +1031,15 @@ =item $term->scr_xor_span ($beg_row, $beg_col, $end_row, $end_col[, $rstyle]) XORs the rendition values in the given span with the provided value -(default: C). Useful in refresh hooks to provide effects similar -to the selection. +(default: C), which I contain font styles. Useful in +refresh hooks to provide effects similar to the selection. =item $term->scr_xor_rect ($beg_row, $beg_col, $end_row, $end_col[, $rstyle1[, $rstyle2]]) Similar to C, but xors a rectangle instead. Trailing whitespace will additionally be xored with the C<$rstyle2>, which defaults to C, which removes reverse video again and underlines -it instead. +it instead. Both styles I contain font styles. =item $term->scr_bell @@ -1207,7 +1233,8 @@ =item $offset = $line->offset_of ($row, $col) Returns the character offset of the given row|col pair within the logical -line. +line. Works for rows outside the line, too, and returns corresponding +offsets outside the string. =item ($row, $col) = $line->coord_of ($offset) @@ -1572,7 +1599,9 @@ =item >= 3 - script loading and management -=item >=10 - all events received +=item >=10 - all called hooks + +=item >=11 - hook reutrn values =back