… | |
… | |
675 | @TERM_EXT = (); |
675 | @TERM_EXT = (); |
676 | $TERM->register_package ($_) for @pkg; |
676 | $TERM->register_package ($_) for @pkg; |
677 | } |
677 | } |
678 | |
678 | |
679 | for ( |
679 | for ( |
680 | @{ delete $TERM->{perl_ext_3} }, |
|
|
681 | grep $_, map { split /,/, $TERM->resource ("perl_ext_$_") } 1, 2 |
680 | grep $_, map { split /,/, $TERM->resource ("perl_ext_$_") } 1, 2 |
682 | ) { |
681 | ) { |
683 | if ($_ eq "default") { |
682 | if ($_ eq "default") { |
684 | |
683 | |
685 | $ext_arg{$_} = [] |
684 | $ext_arg{$_} = [] |
686 | for |
685 | for |
687 | qw(selection option-popup selection-popup readline), |
686 | qw(selection option-popup selection-popup readline), |
|
|
687 | @{ delete $TERM->{perl_ext_3} }, |
688 | map $_->[0], values %{ $TERM->{meta}{binding} }; |
688 | map $_->[0], values %{ $TERM->{meta}{binding} }; |
689 | |
689 | |
690 | for ($TERM->_keysym_resources) { |
690 | for ($TERM->_keysym_resources) { |
691 | next if /^(?:string|command|builtin|builtin-string|perl)/; |
691 | next if /^(?:string|command|builtin|builtin-string|perl)/; |
692 | next unless /^([A-Za-z0-9_\-]+):/; |
692 | next unless /^([A-Za-z0-9_\-]+):/; |
693 | |
693 | |
694 | my $ext = $1; |
694 | my $ext = $1; |
695 | $ext =~ y/-/_/; |
|
|
696 | |
695 | |
697 | $ext_arg{$ext} = []; |
696 | $ext_arg{$ext} = []; |
698 | } |
697 | } |
699 | |
698 | |
700 | } elsif (/^-(.*)$/) { |
699 | } elsif (/^-(.*)$/) { |
… | |
… | |
1499 | to the locale-specific encoding using C<< $term->locale_encode >>. |
1498 | to the locale-specific encoding using C<< $term->locale_encode >>. |
1500 | |
1499 | |
1501 | =item $term->tt_write_user_input ($octets) |
1500 | =item $term->tt_write_user_input ($octets) |
1502 | |
1501 | |
1503 | Like C<tt_write>, but should be used when writing strings in response to |
1502 | Like C<tt_write>, but should be used when writing strings in response to |
1504 | the user pressing a key, to invokes the additional actions requested by |
1503 | the user pressing a key, to invoke the additional actions requested by |
1505 | the user for that case (C<tt_write> doesn't do that). |
1504 | the user for that case (C<tt_write> doesn't do that). |
1506 | |
1505 | |
1507 | The typical use case would be inside C<on_action> hooks. |
1506 | The typical use case would be inside C<on_action> hooks. |
1508 | |
1507 | |
1509 | =item $term->tt_paste ($octets) |
1508 | =item $term->tt_paste ($octets) |