… | |
… | |
47 | <p><strong>rxvt</strong> [options] [-e command [ args ]]</p> |
47 | <p><strong>rxvt</strong> [options] [-e command [ args ]]</p> |
48 | <p> |
48 | <p> |
49 | </p> |
49 | </p> |
50 | <hr /> |
50 | <hr /> |
51 | <h1><a name="description">DESCRIPTION</a></h1> |
51 | <h1><a name="description">DESCRIPTION</a></h1> |
52 | <p><strong>rxvt-unicode</strong>, version <strong>5.2</strong>, is a colour vt102 terminal |
52 | <p><strong>rxvt-unicode</strong>, version <strong>5.5</strong>, is a colour vt102 terminal |
53 | emulator intended as an <em>xterm</em>(1) replacement for users who do not |
53 | emulator intended as an <em>xterm</em>(1) replacement for users who do not |
54 | require features such as Tektronix 4014 emulation and toolkit-style |
54 | require features such as Tektronix 4014 emulation and toolkit-style |
55 | configurability. As a result, <strong>rxvt-unicode</strong> uses much less swap space -- |
55 | configurability. As a result, <strong>rxvt-unicode</strong> uses much less swap space -- |
56 | a significant advantage on a machine serving many X sessions.</p> |
56 | a significant advantage on a machine serving many X sessions.</p> |
57 | <p> |
57 | <p> |
… | |
… | |
545 | <p>Here is a short Gtk2-perl snippet that illustrates how this option can be |
545 | <p>Here is a short Gtk2-perl snippet that illustrates how this option can be |
546 | used (a longer example is in <em>doc/embed</em>):</p> |
546 | used (a longer example is in <em>doc/embed</em>):</p> |
547 | </dd> |
547 | </dd> |
548 | <dd> |
548 | <dd> |
549 | <pre> |
549 | <pre> |
550 | my $rxvt = new Gtk2::DrawingArea; |
550 | my $rxvt = new Gtk2::Socket; |
551 | $...->add ($rxvt); # important to add it somewhere first |
551 | $rxvt->signal_connect_after (realize => sub { |
552 | $rxvt->realize; # now it can be realized |
|
|
553 | my $xid = $rxvt->window->get_xid;</pre> |
552 | my $xid = $_[0]->window->get_xid; |
554 | </dd> |
|
|
555 | <dd> |
|
|
556 | <pre> |
|
|
557 | system "rxvt -embed $xid &";</pre> |
553 | system "rxvt -embed $xid &"; |
|
|
554 | });</pre> |
558 | </dd> |
555 | </dd> |
559 | <p></p> |
556 | <p></p> |
560 | <dt><strong><a name="item__2dpty_2dfd_fileno"><strong>-pty-fd</strong> <em>fileno</em></a></strong><br /> |
557 | <dt><strong><a name="item__2dpty_2dfd_fileno"><strong>-pty-fd</strong> <em>fileno</em></a></strong><br /> |
561 | </dt> |
558 | </dt> |
562 | <dd> |
559 | <dd> |
… | |
… | |
580 | use Fcntl;</pre> |
577 | use Fcntl;</pre> |
581 | </dd> |
578 | </dd> |
582 | <dd> |
579 | <dd> |
583 | <pre> |
580 | <pre> |
584 | my $pty = new IO::Pty; |
581 | my $pty = new IO::Pty; |
585 | fcntl $pty, F_SETFD, 0; # clear close-on-exec</pre> |
582 | fcntl $pty, F_SETFD, 0; # clear close-on-exec |
586 | </dd> |
|
|
587 | <dd> |
|
|
588 | <pre> |
|
|
589 | system "rxvt -pty-fd " . (fileno $pty) . "&";</pre> |
583 | system "rxvt -pty-fd " . (fileno $pty) . "&"; |
|
|
584 | close $pty;</pre> |
590 | </dd> |
585 | </dd> |
591 | <dd> |
586 | <dd> |
592 | <pre> |
587 | <pre> |
593 | # now communicate with rxvt |
588 | # now communicate with rxvt |
594 | my $slave = $pty->slave; |
589 | my $slave = $pty->slave; |
… | |
… | |
1100 | </dd> |
1095 | </dd> |
1101 | <p></p> |
1096 | <p></p> |
1102 | <dt><strong><a name="item_pointerblankdelay_3a_number"><strong>pointerBlankDelay:</strong> <em>number</em></a></strong><br /> |
1097 | <dt><strong><a name="item_pointerblankdelay_3a_number"><strong>pointerBlankDelay:</strong> <em>number</em></a></strong><br /> |
1103 | </dt> |
1098 | </dt> |
1104 | <dd> |
1099 | <dd> |
1105 | Specifies number of seconds before blanking the pointer [default 2]. |
1100 | Specifies number of seconds before blanking the pointer [default 2]. Use a |
|
|
1101 | large number (e.g. <code>987654321</code>) to effectively disable the timeout. |
1106 | </dd> |
1102 | </dd> |
1107 | <p></p> |
1103 | <p></p> |
1108 | <dt><strong><a name="item_backspacekey_3a_string"><strong>backspacekey:</strong> <em>string</em></a></strong><br /> |
1104 | <dt><strong><a name="item_backspacekey_3a_string"><strong>backspacekey:</strong> <em>string</em></a></strong><br /> |
1109 | </dt> |
1105 | </dt> |
1110 | <dd> |
1106 | <dd> |
… | |
… | |
1285 | when Control-Meta-c is being pressed'':</p> |
1281 | when Control-Meta-c is being pressed'':</p> |
1286 | </dd> |
1282 | </dd> |
1287 | <dd> |
1283 | <dd> |
1288 | <pre> |
1284 | <pre> |
1289 | URxvt.keysym.M-C-c: command:\033]701;zh_CN.GBK\007</pre> |
1285 | URxvt.keysym.M-C-c: command:\033]701;zh_CN.GBK\007</pre> |
|
|
1286 | </dd> |
|
|
1287 | <dd> |
|
|
1288 | <p>Due the the large number of modifier combinations, a defined key mapping |
|
|
1289 | will match if at <em>at least</em> the specified identifiers are being set, and |
|
|
1290 | no other key mappings with those and more bits are being defined. That |
|
|
1291 | means that defining a key map for <code>a</code> will automatically provide |
|
|
1292 | definitions for <code>Meta-a</code>, <code>Shift-a</code> and so on, unless some of those are defined |
|
|
1293 | mappings themselves.</p> |
|
|
1294 | </dd> |
|
|
1295 | <dd> |
|
|
1296 | <p>Unfortunately, this will override built-in key mappings. For example |
|
|
1297 | if you overwrite the <code>Insert</code> key you will disable rxvt's |
|
|
1298 | <code>Shift-Insert</code> mapping. To re-enable that, you can poke ``holes'' into the |
|
|
1299 | user-defined keymap using the <code>builtin:</code> replacement:</p> |
|
|
1300 | </dd> |
|
|
1301 | <dd> |
|
|
1302 | <pre> |
|
|
1303 | URxvt.keysym.Insert: <my insert key sequence> |
|
|
1304 | URxvt.keysym.S-Insert: builtin:</pre> |
|
|
1305 | </dd> |
|
|
1306 | <dd> |
|
|
1307 | <p>The first line defines a mapping for <code>Insert</code> and <em>any</em> combination |
|
|
1308 | of modifiers. The second line re-establishes the default mapping for |
|
|
1309 | <code>Shift-Insert</code>.</p> |
1290 | </dd> |
1310 | </dd> |
1291 | <dd> |
1311 | <dd> |
1292 | <p>The following example will map Control-Meta-1 and Control-Meta-2 to |
1312 | <p>The following example will map Control-Meta-1 and Control-Meta-2 to |
1293 | the fonts <code>suxuseuro</code> and <code>9x15bold</code>, so you can have some limited |
1313 | the fonts <code>suxuseuro</code> and <code>9x15bold</code>, so you can have some limited |
1294 | font-switching at runtime:</p> |
1314 | font-switching at runtime:</p> |