… | |
… | |
626 | # now communicate with rxvt |
626 | # now communicate with rxvt |
627 | my $slave = $pty->slave; |
627 | my $slave = $pty->slave; |
628 | while (<$slave>) { print $slave "got <$_>\n" }</pre> |
628 | while (<$slave>) { print $slave "got <$_>\n" }</pre> |
629 | </dd> |
629 | </dd> |
630 | <p></p> |
630 | <p></p> |
631 | <dt><strong><a name="item__2dperl_string"><strong>-perl</strong> <em>string</em></a></strong><br /> |
631 | <dt><strong><a name="item__2dpe_string"><strong>-pe</strong> <em>string</em></a></strong><br /> |
632 | </dt> |
632 | </dt> |
633 | <dd> |
633 | <dd> |
634 | Used by perl extension. See resource <strong>perl</strong>. |
634 | Colon-separated list of perl extension scripts to use in this terminal instance. See resource <strong>perl-ext</strong>. |
635 | </dd> |
635 | </dd> |
636 | <p></p></dl> |
636 | <p></p></dl> |
637 | <p> |
637 | <p> |
638 | </p> |
638 | </p> |
639 | <hr /> |
639 | <hr /> |
… | |
… | |
1371 | <dd> |
1371 | <dd> |
1372 | <pre> |
1372 | <pre> |
1373 | URxvt.keysym.M-C-c: command:\033]701;zh_CN.GBK\007</pre> |
1373 | URxvt.keysym.M-C-c: command:\033]701;zh_CN.GBK\007</pre> |
1374 | </dd> |
1374 | </dd> |
1375 | <dd> |
1375 | <dd> |
|
|
1376 | <p>If <em>string</em> takes the form <code>perl:STRING</code>, then the specified <strong>STRING</strong> |
|
|
1377 | is passed to the <code>on_keyboard_command</code> perl handler. See the <code>rxvtperl(3)</code> |
|
|
1378 | manpage. For example, the <em>selection</em> extension (activated via |
|
|
1379 | <code>rxvt -pe selection</code>) listens for <code>selection:rot13</code> events:</p> |
|
|
1380 | </dd> |
|
|
1381 | <dd> |
|
|
1382 | <pre> |
|
|
1383 | URxvt.keysym.M-C-c: perl:selection:rot13</pre> |
|
|
1384 | </dd> |
|
|
1385 | <dd> |
1376 | <p>Due the the large number of modifier combinations, a defined key mapping |
1386 | <p>Due the the large number of modifier combinations, a defined key mapping |
1377 | will match if at <em>at least</em> the specified identifiers are being set, and |
1387 | will match if at <em>at least</em> the specified identifiers are being set, and |
1378 | no other key mappings with those and more bits are being defined. That |
1388 | no other key mappings with those and more bits are being defined. That |
1379 | means that defining a key map for <code>a</code> will automatically provide |
1389 | means that defining a key map for <code>a</code> will automatically provide |
1380 | definitions for <code>Meta-a</code>, <code>Shift-a</code> and so on, unless some of those are defined |
1390 | definitions for <code>Meta-a</code>, <code>Shift-a</code> and so on, unless some of those are defined |
… | |
… | |
1414 | <pre> |
1424 | <pre> |
1415 | URxvt.keysym.M-C-3: command:\033[8;25;80t |
1425 | URxvt.keysym.M-C-3: command:\033[8;25;80t |
1416 | URxvt.keysym.M-C-4: command:\033[8;48;110t</pre> |
1426 | URxvt.keysym.M-C-4: command:\033[8;48;110t</pre> |
1417 | </dd> |
1427 | </dd> |
1418 | <p></p> |
1428 | <p></p> |
1419 | <dt><strong><a name="item_perl_3a_string"><strong>perl</strong>: <em>string</em></a></strong><br /> |
1429 | <dt><strong><a name="item_perl_2dext_3a_string"><strong>perl-ext</strong>: <em>string</em></a></strong><br /> |
1420 | </dt> |
1430 | </dt> |
1421 | <dd> |
1431 | <dd> |
1422 | Used by perl extension and is free for any use, as it is not interpreted |
1432 | Colon-separated list of perl extension scripts to use in this terminal |
1423 | by rxvt-unicode itself; option <strong>perl</strong>. |
1433 | instance. Each extension is looked up in the library directories, loaded |
|
|
1434 | if necessary, and bound to the current terminal instance; option <strong>-pe</strong>. |
1424 | </dd> |
1435 | </dd> |
1425 | <p></p> |
1436 | <p></p> |
1426 | <dt><strong><a name="item_perl_2deval_3a_string"><strong>perl-eval</strong>: <em>string</em></a></strong><br /> |
1437 | <dt><strong><a name="item_perl_2deval_3a_string"><strong>perl-eval</strong>: <em>string</em></a></strong><br /> |
1427 | </dt> |
1438 | </dt> |
1428 | <dd> |
1439 | <dd> |
1429 | Perl code to be evaluated when all extensions have been loaded. See the |
1440 | Perl code to be evaluated when all extensions have been registered. See the |
1430 | <code>rxvtperl(3)</code> manpage. |
1441 | <code>rxvtperl(3)</code> manpage. |
1431 | </dd> |
1442 | </dd> |
1432 | <p></p> |
1443 | <p></p> |
1433 | <dt><strong><a name="item_perl_2dlib_3a_path"><strong>perl-lib</strong>: <em>path</em></a></strong><br /> |
1444 | <dt><strong><a name="item_perl_2dlib_3a_path"><strong>perl-lib</strong>: <em>path</em></a></strong><br /> |
1434 | </dt> |
1445 | </dt> |
1435 | <dd> |
1446 | <dd> |
1436 | Additional directory that holds extension scripts that are loaded and |
1447 | Colon-separated list of additional directories that hold extension |
1437 | enabled for this terminal instance, in addition to scripts stored in |
1448 | scripts. When looking for extensions specified by the <code>perl</code> resource, |
1438 | <em>/opt/rxvt/lib/urxvt/perl-ext/</em>, which are global to all terminal |
1449 | rxvt will first look in these directories and then in |
1439 | instances. |
1450 | <em>/opt/rxvt/lib/urxvt/perl/</em>. |
1440 | </dd> |
1451 | </dd> |
1441 | <dd> |
1452 | <dd> |
1442 | <p>See the <code>rxvtperl(3)</code> manpage.</p> |
1453 | <p>See the <code>rxvtperl(3)</code> manpage.</p> |
1443 | </dd> |
1454 | </dd> |
1444 | <p></p></dl> |
1455 | <p></p></dl> |