… | |
… | |
511 | <dd> |
511 | <dd> |
512 | Turn on/off secondary screen scroll (default enabled); resource |
512 | Turn on/off secondary screen scroll (default enabled); resource |
513 | <strong>secondaryScroll</strong>. |
513 | <strong>secondaryScroll</strong>. |
514 | </dd> |
514 | </dd> |
515 | <p></p> |
515 | <p></p> |
516 | <dt><strong><a name="item__2dkeysym_2esym_3a_string"><strong>-keysym.</strong><em>sym</em>: <em>string</em></a></strong><br /> |
516 | <dt><strong><a name="item__2dkeysym_2esym_string"><strong>-keysym.</strong><em>sym</em> <em>string</em></a></strong><br /> |
517 | </dt> |
517 | </dt> |
518 | <dd> |
518 | <dd> |
519 | Remap a key symbol. See resource <strong>keysym</strong>. |
519 | Remap a key symbol. See resource <strong>keysym</strong>. |
520 | </dd> |
520 | </dd> |
521 | <p></p> |
521 | <p></p> |
522 | <dt><strong><a name="item__2dembed_3a_windowid"><strong>-embed</strong>: <em>windowid</em></a></strong><br /> |
522 | <dt><strong><a name="item__2dembed_windowid"><strong>-embed</strong> <em>windowid</em></a></strong><br /> |
523 | </dt> |
523 | </dt> |
524 | <dd> |
524 | <dd> |
525 | Tells rxvt to embed it's windows into an already-existing window, |
525 | Tells rxvt to embed it's windows into an already-existing window, |
526 | which enables applications to easily embed a terminal. |
526 | which enables applications to easily embed a terminal. |
527 | </dd> |
527 | </dd> |
… | |
… | |
538 | <p>It might be useful to know that rxvt will not close file |
538 | <p>It might be useful to know that rxvt will not close file |
539 | descriptors passed to it (except for stdin/out/err, of course), so you |
539 | descriptors passed to it (except for stdin/out/err, of course), so you |
540 | can use file descriptors to communicate with the programs within the |
540 | can use file descriptors to communicate with the programs within the |
541 | terminal. This works regardless of wether the <code>-embed</code> option was used or |
541 | terminal. This works regardless of wether the <code>-embed</code> option was used or |
542 | not.</p> |
542 | not.</p> |
|
|
543 | </dd> |
|
|
544 | <dd> |
|
|
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> |
|
|
547 | </dd> |
|
|
548 | <dd> |
|
|
549 | <pre> |
|
|
550 | my $rxvt = new Gtk2::Socket; |
|
|
551 | $rxvt->signal_connect_after (realize => sub { |
|
|
552 | my $xid = $_[0]->window->get_xid; |
|
|
553 | system "rxvt -embed $xid &"; |
|
|
554 | });</pre> |
|
|
555 | </dd> |
|
|
556 | <p></p> |
|
|
557 | <dt><strong><a name="item__2dpty_2dfd_fileno"><strong>-pty-fd</strong> <em>fileno</em></a></strong><br /> |
|
|
558 | </dt> |
|
|
559 | <dd> |
|
|
560 | Tells rxvt NOT to execute any commands or create a new pty/tty |
|
|
561 | pair but instead use the given filehandle as the tty master. This is |
|
|
562 | useful if you want to drive rxvt as a generic terminal emulator |
|
|
563 | without having to run a program within it. |
|
|
564 | </dd> |
|
|
565 | <dd> |
|
|
566 | <p>If this switch is given, rxvt will not create any utmp/wtmp |
|
|
567 | entries and will not tinker with pty/tty permissions - you have to do that |
|
|
568 | yourself if you want that.</p> |
|
|
569 | </dd> |
|
|
570 | <dd> |
|
|
571 | <p>Here is a example in perl that illustrates how this option can be used (a |
|
|
572 | longer example is in <em>doc/pty-fd</em>):</p> |
|
|
573 | </dd> |
|
|
574 | <dd> |
|
|
575 | <pre> |
|
|
576 | use IO::Pty; |
|
|
577 | use Fcntl;</pre> |
|
|
578 | </dd> |
|
|
579 | <dd> |
|
|
580 | <pre> |
|
|
581 | my $pty = new IO::Pty; |
|
|
582 | fcntl $pty, F_SETFD, 0; # clear close-on-exec |
|
|
583 | system "rxvt -pty-fd " . (fileno $pty) . "&"; |
|
|
584 | close $pty;</pre> |
|
|
585 | </dd> |
|
|
586 | <dd> |
|
|
587 | <pre> |
|
|
588 | # now communicate with rxvt |
|
|
589 | my $slave = $pty->slave; |
|
|
590 | while (<$slave>) { print $slave "got <$_>\n" }</pre> |
543 | </dd> |
591 | </dd> |
544 | <p></p></dl> |
592 | <p></p></dl> |
545 | <p> |
593 | <p> |
546 | </p> |
594 | </p> |
547 | <hr /> |
595 | <hr /> |