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.58 by root, Sun Jan 8 22:58:13 2006 UTC vs.
Revision 1.59 by root, Mon Jan 9 00:34:36 2006 UTC

58 58
59=back 59=back
60 60
61=item option-popup (enabled by default) 61=item option-popup (enabled by default)
62 62
63Binds a popup menu to Ctrl-Button3 that lets you toggle (some) options at 63Binds a popup menu to Ctrl-Button2 that lets you toggle (some) options at
64runtime. 64runtime.
65
66=item selection-popup (enabled by default)
67
68Binds a popup menu to Ctrl-Button3 that lets you convert the selection
69text into various other formats/action.
65 70
66=item digital-clock 71=item digital-clock
67 72
68Displays a digital clock using the built-in overlay. 73Displays a digital clock using the built-in overlay.
69 74
423 my $msg = join "", @_; 428 my $msg = join "", @_;
424 $msg .= "\n" 429 $msg .= "\n"
425 unless $msg =~ /\n$/; 430 unless $msg =~ /\n$/;
426 urxvt::warn ($msg); 431 urxvt::warn ($msg);
427 }; 432 };
433
434 $ENV{PATH} = "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin:/opt/sbin";
435 delete $ENV{CDPATH};
428} 436}
429 437
430my @hook_count; 438my @hook_count;
431my $verbosity = $ENV{URXVT_PERL_VERBOSITY}; 439my $verbosity = $ENV{URXVT_PERL_VERBOSITY};
432 440
465 verbose 3, "loading extension '$path' into package '$pkg'"; 473 verbose 3, "loading extension '$path' into package '$pkg'";
466 474
467 open my $fh, "<:raw", $path 475 open my $fh, "<:raw", $path
468 or die "$path: $!"; 476 or die "$path: $!";
469 477
470 my $source = "package $pkg; use strict; use utf8;\n" 478 my $source = untaint "package $pkg; use strict; use utf8;\n"
471 . "use base urxvt::term::proxy::;\n" 479 . "use base urxvt::term::proxy::;\n"
472 . "#line 1 \"$path\"\n{\n" 480 . "#line 1 \"$path\"\n{\n"
473 . (do { local $/; <$fh> }) 481 . (do { local $/; <$fh> })
474 . "\n};\n1"; 482 . "\n};\n1";
475 483
476 $source =~ /(.*)/s and $source = $1; # untaint
477
478 eval $source or die "$path: $@"; 484 eval $source or die "$path: $@";
479 485
480 $pkg 486 $pkg
481 } 487 }
482} 488}
493 499
494 my %want_ext; 500 my %want_ext;
495 501
496 for (map { split /,/, $TERM->resource ("perl_ext_$_") } 1, 2) { 502 for (map { split /,/, $TERM->resource ("perl_ext_$_") } 1, 2) {
497 if ($_ eq "default") { 503 if ($_ eq "default") {
498 $want_ext{$_}++ for qw(selection option-popup); 504 $want_ext{$_}++ for qw(selection option-popup selection-popup);
499 } elsif (/^-(.*)$/) { 505 } elsif (/^-(.*)$/) {
500 delete $want_ext{$1}; 506 delete $want_ext{$1};
501 } else { 507 } else {
502 $want_ext{$_}++; 508 $want_ext{$_}++;
503 } 509 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines