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.69 by root, Mon Jan 9 22:41:41 2006 UTC vs.
Revision 1.74 by root, Tue Jan 10 04:26:54 2006 UTC

66=item selection-popup (enabled by default) 66=item selection-popup (enabled by default)
67 67
68Binds a popup menu to Ctrl-Button3 that lets you convert the selection 68Binds a popup menu to Ctrl-Button3 that lets you convert the selection
69text into various other formats/action. 69text into various other formats/action.
70 70
71=item searchable-scrollback (enabled by default) 71=item searchable-scrollback<hotkey> (enabled by default)
72 72
73Adds regex search functionality to the scrollback buffer, triggered by a 73Adds regex search functionality to the scrollback buffer, triggered
74hotkey (default: C<M-s>). When in search mode, terminal input/output is 74by a hotkey (default: C<M-s>). When in search mode, normal terminal
75input/output is suspended.
76
75suspended, C</> starts an incremental regex search, C<n> searches further, 77C</> starts an incremental regex search, C<n> searches further, C<p> or
76C<p> jumps to the previous match. C<enter> leaves search mode at the 78C<N> jump to the previous match, C<G> jumps to the bottom and clears the
77current position and C<escape> returns to the original position. 79history, C<enter> leaves search mode at the current position and C<escape>
80returns to the original position.
78 81
79=item digital-clock 82=item digital-clock
80 83
81Displays a digital clock using the built-in overlay. 84Displays a digital clock using the built-in overlay.
82 85
263can filter/change and output the text yourself by returning a true value 266can filter/change and output the text yourself by returning a true value
264and calling C<< $term->scr_add_lines >> yourself. Please note that this 267and calling C<< $term->scr_add_lines >> yourself. Please note that this
265might be very slow, however, as your hook is called for B<all> text being 268might be very slow, however, as your hook is called for B<all> text being
266output. 269output.
267 270
271=item on_tt_write $term, $octets
272
273Called whenever some data is written to the tty/pty and can be used to
274suppress or filter tty input.
275
268=item on_line_update $term, $row 276=item on_line_update $term, $row
269 277
270Called whenever a line was updated or changed. Can be used to filter 278Called whenever a line was updated or changed. Can be used to filter
271screen output (e.g. underline urls or other useless stuff). Only lines 279screen output (e.g. underline urls or other useless stuff). Only lines
272that are being shown will be filtered, and, due to performance reasons, 280that are being shown will be filtered, and, due to performance reasons,
457our $VERSION = 1; 465our $VERSION = 1;
458our $TERM; 466our $TERM;
459our @HOOKNAME; 467our @HOOKNAME;
460our %HOOKTYPE = map +($HOOKNAME[$_] => $_), 0..$#HOOKNAME; 468our %HOOKTYPE = map +($HOOKNAME[$_] => $_), 0..$#HOOKNAME;
461our %OPTION; 469our %OPTION;
470
462our $LIBDIR; 471our $LIBDIR;
472our $RESNAME;
473our $RESCLASS;
474our $RXVTNAME;
463 475
464BEGIN { 476BEGIN {
465 urxvt->bootstrap; 477 urxvt->bootstrap;
466 478
467 # overwrite perl's warn 479 # overwrite perl's warn
501 open my $fh, "<:raw", $path 513 open my $fh, "<:raw", $path
502 or die "$path: $!"; 514 or die "$path: $!";
503 515
504 my $source = untaint 516 my $source = untaint
505 "package $pkg; use strict; use utf8;\n" 517 "package $pkg; use strict; use utf8;\n"
506 . "use base urxvt::term::proxy::;\n" 518 . "use base urxvt::term::extension::;\n"
507 . "#line 1 \"$path\"\n{\n" 519 . "#line 1 \"$path\"\n{\n"
508 . (do { local $/; <$fh> }) 520 . (do { local $/; <$fh> })
509 . "\n};\n1"; 521 . "\n};\n1";
510 522
511 eval $source 523 eval $source
588 } 600 }
589 601
590 $retval 602 $retval
591} 603}
592 604
593# urxvt::term::proxy 605# urxvt::term::extension
594 606
595package urxvt::term::proxy; 607package urxvt::term::extension;
596 608
597sub enable { 609sub enable {
598 my ($self, %hook) = @_; 610 my ($self, %hook) = @_;
599 my $pkg = $self->{_pkg}; 611 my $pkg = $self->{_pkg};
600 612
941 953
942=item $string = $term->locale_decode ($octets) 954=item $string = $term->locale_decode ($octets)
943 955
944Convert the given locale-encoded octets into a perl string. 956Convert the given locale-encoded octets into a perl string.
945 957
958=item $term->scr_xor_span ($beg_row, $beg_col, $end_row, $end_col[, $rstyle])
959
960XORs the rendition values in the given span with the provided value
961(default: C<RS_RVid>). Useful in refresh hooks to provide effects similar
962to the selection.
963
964=item $term->scr_xor_rect ($beg_row, $beg_col, $end_row, $end_col[, $rstyle1[, $rstyle2]])
965
966Similar to C<scr_xor_span>, but xors a rectangle instead. Trailing
967whitespace will additionally be xored with the C<$rstyle2>, which defaults
968to C<RS_RVid | RS_Uline>, which removes reverse video again and underlines
969it instead.
970
946=item $term->scr_bell 971=item $term->scr_bell
947 972
948Ring the bell! 973Ring the bell!
949 974
950=item $term->scr_add_lines ($string) 975=item $term->scr_add_lines ($string)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines