… | |
… | |
453 | |
453 | |
454 | # now communicate with rxvt |
454 | # now communicate with rxvt |
455 | my $slave = $pty->slave; |
455 | my $slave = $pty->slave; |
456 | while (<$slave>) { print $slave "got <$_>\n" } |
456 | while (<$slave>) { print $slave "got <$_>\n" } |
457 | |
457 | |
458 | =item B<-perl> I<string> |
458 | =item B<-pe> I<string> |
459 | |
459 | |
460 | Used by perl extension. See resource B<perl>. |
460 | Colon-separated list of perl extension scripts to use in this terminal instance. See resource B<perl-ext>. |
461 | |
461 | |
462 | =back |
462 | =back |
463 | |
463 | |
464 | =head1 RESOURCES (available also as long-options) |
464 | =head1 RESOURCES (available also as long-options) |
465 | |
465 | |
… | |
… | |
1022 | example the following means "change the current locale to C<zh_CN.GBK> |
1022 | example the following means "change the current locale to C<zh_CN.GBK> |
1023 | when Control-Meta-c is being pressed": |
1023 | when Control-Meta-c is being pressed": |
1024 | |
1024 | |
1025 | URxvt.keysym.M-C-c: command:\033]701;zh_CN.GBK\007 |
1025 | URxvt.keysym.M-C-c: command:\033]701;zh_CN.GBK\007 |
1026 | |
1026 | |
|
|
1027 | If I<string> takes the form C<perl:STRING>, then the specified B<STRING> |
|
|
1028 | is passed to the C<on_keyboard_command> perl handler. See the @@RXVT_NAME@@perl(3) |
|
|
1029 | manpage. For example, the F<selection> extension (activated via |
|
|
1030 | C<@@RXVT_NAME@@ -pe selection>) listens for C<selection:rot13> events: |
|
|
1031 | |
|
|
1032 | URxvt.keysym.M-C-c: perl:selection:rot13 |
|
|
1033 | |
1027 | Due the the large number of modifier combinations, a defined key mapping |
1034 | Due the the large number of modifier combinations, a defined key mapping |
1028 | will match if at I<at least> the specified identifiers are being set, and |
1035 | will match if at I<at least> the specified identifiers are being set, and |
1029 | no other key mappings with those and more bits are being defined. That |
1036 | no other key mappings with those and more bits are being defined. That |
1030 | means that defining a key map for C<a> will automatically provide |
1037 | means that defining a key map for C<a> will automatically provide |
1031 | definitions for C<Meta-a>, C<Shift-a> and so on, unless some of those are defined |
1038 | definitions for C<Meta-a>, C<Shift-a> and so on, unless some of those are defined |
… | |
… | |
1054 | info): |
1061 | info): |
1055 | |
1062 | |
1056 | URxvt.keysym.M-C-3: command:\033[8;25;80t |
1063 | URxvt.keysym.M-C-3: command:\033[8;25;80t |
1057 | URxvt.keysym.M-C-4: command:\033[8;48;110t |
1064 | URxvt.keysym.M-C-4: command:\033[8;48;110t |
1058 | |
1065 | |
1059 | =item B<perl>: I<string> |
1066 | =item B<perl-ext>: I<string> |
1060 | |
1067 | |
1061 | Used by perl extension and is free for any use, as it is not interpreted |
1068 | Colon-separated list of perl extension scripts to use in this terminal |
1062 | by rxvt-unicode itself; option B<perl>. |
1069 | instance. Each extension is looked up in the library directories, loaded |
|
|
1070 | if necessary, and bound to the current terminal instance. If this resource |
|
|
1071 | is empty or missing, then the perl interpreter will not be initialized; |
|
|
1072 | option B<-pe>. |
1063 | |
1073 | |
1064 | =item B<perl-eval>: I<string> |
1074 | =item B<perl-eval>: I<string> |
1065 | |
1075 | |
1066 | Perl code to be evaluated when all extensions have been loaded. See the |
1076 | Perl code to be evaluated when all extensions have been registered. See the |
1067 | rxvtperl(3) manpage. |
1077 | @@RXVT_NAME@@perl(3) manpage. |
1068 | |
1078 | |
1069 | =item B<perl-lib>: I<path> |
1079 | =item B<perl-lib>: I<path> |
1070 | |
1080 | |
1071 | Additional directory that holds extension scripts that are loaded and |
1081 | Colon-separated list of additional directories that hold extension |
1072 | enabled for this terminal instance, in addition to scripts stored in |
1082 | scripts. When looking for extensions specified by the C<perl> resource, |
1073 | F<@@RXVT_LIBDIR@@/urxvt/perl-ext/>, which are global to all terminal |
1083 | @@RXVT_NAME@@ will first look in these directories and then in |
1074 | instances. |
1084 | F<@@RXVT_LIBDIR@@/urxvt/perl/>. |
1075 | |
1085 | |
1076 | See the rxvtperl(3) manpage. |
1086 | See the @@RXVT_NAME@@perl(3) manpage. |
1077 | |
1087 | |
1078 | =back |
1088 | =back |
1079 | |
1089 | |
1080 | =head1 THE SCROLLBAR |
1090 | =head1 THE SCROLLBAR |
1081 | |
1091 | |