… | |
… | |
943 | }; |
943 | }; |
944 | } |
944 | } |
945 | |
945 | |
946 | no warnings 'utf8'; |
946 | no warnings 'utf8'; |
947 | |
947 | |
|
|
948 | sub 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 | |
|
|
956 | our %META; # meta header information from scripts |
|
|
957 | our %SCAN; # which dirs already scanned |
|
|
958 | |
|
|
959 | sub 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 | |
948 | my $verbosity = $ENV{URXVT_PERL_VERBOSITY}; |
970 | my $verbosity = $ENV{URXVT_PERL_VERBOSITY}; |
949 | |
971 | |
950 | sub verbose { |
972 | sub verbose { |
951 | my ($level, $msg) = @_; |
973 | my ($level, $msg) = @_; |
952 | warn "$msg\n" if $level <= $verbosity; |
974 | warn "$msg\n" if $level <= $verbosity; |
… | |
… | |
988 | sub invoke { |
1010 | sub 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; |
… | |
… | |
1629 | Adds the specified events to the vt event mask. Useful e.g. when you want |
1651 | Adds the specified events to the vt event mask. Useful e.g. when you want |
1630 | to receive pointer events all the times: |
1652 | to 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 | |
|
|
1658 | Enable/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]) |