--- rxvt-unicode/src/urxvt.pm 2006/01/09 22:41:41 1.69 +++ rxvt-unicode/src/urxvt.pm 2006/01/10 04:26:54 1.74 @@ -68,13 +68,16 @@ Binds a popup menu to Ctrl-Button3 that lets you convert the selection text into various other formats/action. -=item searchable-scrollback (enabled by default) +=item searchable-scrollback (enabled by default) -Adds regex search functionality to the scrollback buffer, triggered by a -hotkey (default: C). When in search mode, terminal input/output is -suspended, C starts an incremental regex search, C searches further, -C

jumps to the previous match. C leaves search mode at the -current position and C returns to the original position. +Adds regex search functionality to the scrollback buffer, triggered +by a hotkey (default: C). When in search mode, normal terminal +input/output is suspended. + +C starts an incremental regex search, C searches further, C

or +C jump to the previous match, C jumps to the bottom and clears the +history, C leaves search mode at the current position and C +returns to the original position. =item digital-clock @@ -265,6 +268,11 @@ might be very slow, however, as your hook is called for B text being output. +=item on_tt_write $term, $octets + +Called whenever some data is written to the tty/pty and can be used to +suppress or filter tty input. + =item on_line_update $term, $row Called whenever a line was updated or changed. Can be used to filter @@ -459,7 +467,11 @@ our @HOOKNAME; our %HOOKTYPE = map +($HOOKNAME[$_] => $_), 0..$#HOOKNAME; our %OPTION; + our $LIBDIR; +our $RESNAME; +our $RESCLASS; +our $RXVTNAME; BEGIN { urxvt->bootstrap; @@ -503,7 +515,7 @@ my $source = untaint "package $pkg; use strict; use utf8;\n" - . "use base urxvt::term::proxy::;\n" + . "use base urxvt::term::extension::;\n" . "#line 1 \"$path\"\n{\n" . (do { local $/; <$fh> }) . "\n};\n1"; @@ -590,9 +602,9 @@ $retval } -# urxvt::term::proxy +# urxvt::term::extension -package urxvt::term::proxy; +package urxvt::term::extension; sub enable { my ($self, %hook) = @_; @@ -943,6 +955,19 @@ Convert the given locale-encoded octets into a perl string. +=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. + +=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. + =item $term->scr_bell Ring the bell!