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.203 by sf-exg, Fri Dec 2 09:03:43 2011 UTC vs.
Revision 1.207 by root, Tue Jun 5 21:29:52 2012 UTC

943 }; 943 };
944} 944}
945 945
946no warnings 'utf8'; 946no warnings 'utf8';
947 947
948sub perl_libdirs {
949 map { split /:/ }
950 $_[0]->resource ("perl_lib"),
951 $ENV{URXVT_PERL_LIB},
952 "$ENV{HOME}/.urxvt/ext",
953 "$LIBDIR/perl"
954}
955
956our %META; # meta header information from scripts
957our %SCAN; # which dirs already scanned
958
959sub resource {
960 my ($term, $name, $isarg, $flag, $value) = @_;
961
962 for my $dir (perl_libdirs $term) {
963 }
964
965 warn "resourece<@_>\n";#d#
966
967 0
968}
969
948my $verbosity = $ENV{URXVT_PERL_VERBOSITY}; 970my $verbosity = $ENV{URXVT_PERL_VERBOSITY};
949 971
950sub verbose { 972sub verbose {
951 my ($level, $msg) = @_; 973 my ($level, $msg) = @_;
952 warn "$msg\n" if $level <= $verbosity; 974 warn "$msg\n" if $level <= $verbosity;
988sub invoke { 1010sub invoke {
989 local $TERM = shift; 1011 local $TERM = shift;
990 my $htype = shift; 1012 my $htype = shift;
991 1013
992 if ($htype == 0) { # INIT 1014 if ($htype == 0) { # INIT
993 my @dirs = ((split /:/, $TERM->resource ("perl_lib")), "$ENV{HOME}/.urxvt/ext", "$LIBDIR/perl"); 1015 my @dirs = perl_libdirs $TERM;
994 1016
995 my %ext_arg; 1017 my %ext_arg;
996 1018
997 { 1019 {
998 my @init = @TERM_INIT; 1020 my @init = @TERM_INIT;
1629Adds the specified events to the vt event mask. Useful e.g. when you want 1651Adds the specified events to the vt event mask. Useful e.g. when you want
1630to receive pointer events all the times: 1652to receive pointer events all the times:
1631 1653
1632 $term->vt_emask_add (urxvt::PointerMotionMask); 1654 $term->vt_emask_add (urxvt::PointerMotionMask);
1633 1655
1656=item $term->set_urgency ($set)
1657
1658Enable/disable the urgency hint on the toplevel window.
1659
1634=item $term->focus_in 1660=item $term->focus_in
1635 1661
1636=item $term->focus_out 1662=item $term->focus_out
1637 1663
1638=item $term->key_press ($state, $keycode[, $time]) 1664=item $term->key_press ($state, $keycode[, $time])

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines