… | |
… | |
390 | |
390 | |
391 | # now communicate with rxvt |
391 | # now communicate with rxvt |
392 | my $slave = $pty->slave; |
392 | my $slave = $pty->slave; |
393 | while (<$slave>) { print $slave "got <$_>\n" } |
393 | while (<$slave>) { print $slave "got <$_>\n" } |
394 | |
394 | |
395 | -perl *string* |
395 | -pe *string* |
396 | Used by perl extension. See resource perl. |
396 | Colon-separated list of perl extension scripts to use in this |
|
|
397 | terminal instance. See resource perl-ext. |
397 | |
398 | |
398 | RESOURCES (available also as long-options) |
399 | RESOURCES (available also as long-options) |
399 | Note: `rxvt --help' gives a list of all resources (long options) |
400 | Note: `rxvt --help' gives a list of all resources (long options) |
400 | compiled into your version. |
401 | compiled into your version. |
401 | |
402 | |
… | |
… | |
884 | the following means "change the current locale to "zh_CN.GBK" when |
885 | the following means "change the current locale to "zh_CN.GBK" when |
885 | Control-Meta-c is being pressed": |
886 | Control-Meta-c is being pressed": |
886 | |
887 | |
887 | URxvt.keysym.M-C-c: command:\033]701;zh_CN.GBK\007 |
888 | URxvt.keysym.M-C-c: command:\033]701;zh_CN.GBK\007 |
888 | |
889 | |
|
|
890 | If *string* takes the form "perl:STRING", then the specified STRING |
|
|
891 | is passed to the "on_keyboard_command" perl handler. See the |
|
|
892 | rxvtperl(3) manpage. For example, the selection extension (activated |
|
|
893 | via "rxvt -pe selection") listens for "selection:rot13" events: |
|
|
894 | |
|
|
895 | URxvt.keysym.M-C-c: perl:selection:rot13 |
|
|
896 | |
889 | Due the the large number of modifier combinations, a defined key |
897 | Due the the large number of modifier combinations, a defined key |
890 | mapping will match if at *at least* the specified identifiers are |
898 | mapping will match if at *at least* the specified identifiers are |
891 | being set, and no other key mappings with those and more bits are |
899 | being set, and no other key mappings with those and more bits are |
892 | being defined. That means that defining a key map for "a" will |
900 | being defined. That means that defining a key map for "a" will |
893 | automatically provide definitions for "Meta-a", "Shift-a" and so on, |
901 | automatically provide definitions for "Meta-a", "Shift-a" and so on, |
… | |
… | |
916 | info): |
924 | info): |
917 | |
925 | |
918 | URxvt.keysym.M-C-3: command:\033[8;25;80t |
926 | URxvt.keysym.M-C-3: command:\033[8;25;80t |
919 | URxvt.keysym.M-C-4: command:\033[8;48;110t |
927 | URxvt.keysym.M-C-4: command:\033[8;48;110t |
920 | |
928 | |
921 | perl: *string* |
929 | perl-ext: *string* |
922 | Used by perl extension and is free for any use, as it is not |
930 | Colon-separated list of perl extension scripts to use in this |
923 | interpreted by rxvt-unicode itself; option perl. |
931 | terminal instance. Each extension is looked up in the library |
|
|
932 | directories, loaded if necessary, and bound to the current terminal |
|
|
933 | instance; option -pe. |
924 | |
934 | |
925 | perl-eval: *string* |
935 | perl-eval: *string* |
926 | Perl code to be evaluated when all extensions have been loaded. See |
936 | Perl code to be evaluated when all extensions have been registered. |
927 | the rxvtperl(3) manpage. |
937 | See the rxvtperl(3) manpage. |
928 | |
938 | |
929 | perl-lib: *path* |
939 | perl-lib: *path* |
930 | Additional directory that holds extension scripts that are loaded |
940 | Colon-separated list of additional directories that hold extension |
931 | and enabled for this terminal instance, in addition to scripts |
941 | scripts. When looking for extensions specified by the "perl" |
932 | stored in /opt/rxvt/lib/urxvt/perl-ext/, which are global to all |
942 | resource, rxvt will first look in these directories and then in |
933 | terminal instances. |
943 | /opt/rxvt/lib/urxvt/perl/. |
934 | |
944 | |
935 | See the rxvtperl(3) manpage. |
945 | See the rxvtperl(3) manpage. |
936 | |
946 | |
937 | THE SCROLLBAR |
947 | THE SCROLLBAR |
938 | Lines of text that scroll off the top of the rxvt window (resource: |
948 | Lines of text that scroll off the top of the rxvt window (resource: |