… | |
… | |
127 | .\} |
127 | .\} |
128 | .rm #[ #] #H #V #F C |
128 | .rm #[ #] #H #V #F C |
129 | .\" ======================================================================== |
129 | .\" ======================================================================== |
130 | .\" |
130 | .\" |
131 | .IX Title "rxvt 1" |
131 | .IX Title "rxvt 1" |
132 | .TH rxvt 1 "2005-02-16" "5.2" "RXVT-UNICODE" |
132 | .TH rxvt 1 "2005-02-17" "5.2" "RXVT-UNICODE" |
133 | .SH "NAME" |
133 | .SH "NAME" |
134 | rxvt\-unicode (ouR XVT, unicode) \- (a VT102 emulator for the X window system) |
134 | rxvt\-unicode (ouR XVT, unicode) \- (a VT102 emulator for the X window system) |
135 | .SH "SYNOPSIS" |
135 | .SH "SYNOPSIS" |
136 | .IX Header "SYNOPSIS" |
136 | .IX Header "SYNOPSIS" |
137 | \&\fB@@RXVT_NAME@@\fR [options] [\-e command [ args ]] |
137 | \&\fB@@RXVT_NAME@@\fR [options] [\-e command [ args ]] |
… | |
… | |
441 | \&\fBsecondaryScreen\fR. |
441 | \&\fBsecondaryScreen\fR. |
442 | .IP "\fB\-ssr\fR|\fB+ssr\fR" 4 |
442 | .IP "\fB\-ssr\fR|\fB+ssr\fR" 4 |
443 | .IX Item "-ssr|+ssr" |
443 | .IX Item "-ssr|+ssr" |
444 | Turn on/off secondary screen scroll (default enabled); resource |
444 | Turn on/off secondary screen scroll (default enabled); resource |
445 | \&\fBsecondaryScroll\fR. |
445 | \&\fBsecondaryScroll\fR. |
446 | .IP "\fB\-keysym.\fR\fIsym\fR: \fIstring\fR" 4 |
446 | .IP "\fB\-keysym.\fR\fIsym\fR \fIstring\fR" 4 |
447 | .IX Item "-keysym.sym: string" |
447 | .IX Item "-keysym.sym string" |
448 | Remap a key symbol. See resource \fBkeysym\fR. |
448 | Remap a key symbol. See resource \fBkeysym\fR. |
449 | .IP "\fB\-embed\fR: \fIwindowid\fR" 4 |
449 | .IP "\fB\-embed\fR \fIwindowid\fR" 4 |
450 | .IX Item "-embed: windowid" |
450 | .IX Item "-embed windowid" |
451 | Tells @@RXVT_NAME@@ to embed it's windows into an already-existing window, |
451 | Tells @@RXVT_NAME@@ to embed it's windows into an already-existing window, |
452 | which enables applications to easily embed a terminal. |
452 | which enables applications to easily embed a terminal. |
453 | .Sp |
453 | .Sp |
454 | Right now, @@RXVT_NAME@@ will first unmap/map the specified window, so it |
454 | Right now, @@RXVT_NAME@@ will first unmap/map the specified window, so it |
455 | shouldn't be a top-level window. @@RXVT_NAME@@ will also reconfigure it |
455 | shouldn't be a top-level window. @@RXVT_NAME@@ will also reconfigure it |
… | |
… | |
461 | It might be useful to know that @@RXVT_NAME@@ will not close file |
461 | It might be useful to know that @@RXVT_NAME@@ will not close file |
462 | descriptors passed to it (except for stdin/out/err, of course), so you |
462 | descriptors passed to it (except for stdin/out/err, of course), so you |
463 | can use file descriptors to communicate with the programs within the |
463 | can use file descriptors to communicate with the programs within the |
464 | terminal. This works regardless of wether the \f(CW\*(C`\-embed\*(C'\fR option was used or |
464 | terminal. This works regardless of wether the \f(CW\*(C`\-embed\*(C'\fR option was used or |
465 | not. |
465 | not. |
|
|
466 | .Sp |
|
|
467 | Here is a short Gtk2\-perl snippet that illustrates how this option can be |
|
|
468 | used (a longer example is in \fIdoc/embed\fR): |
|
|
469 | .Sp |
|
|
470 | .Vb 4 |
|
|
471 | \& my $rxvt = new Gtk2::DrawingArea; |
|
|
472 | \& $...->add ($rxvt); # important to add it somewhere first |
|
|
473 | \& $rxvt->realize; # now it can be realized |
|
|
474 | \& my $xid = $rxvt->window->get_xid; |
|
|
475 | .Ve |
|
|
476 | .Sp |
|
|
477 | .Vb 1 |
|
|
478 | \& system "@@RXVT_NAME@@ -embed $xid &"; |
|
|
479 | .Ve |
|
|
480 | .IP "\fB\-pty\-fd\fR \fIfileno\fR" 4 |
|
|
481 | .IX Item "-pty-fd fileno" |
|
|
482 | Tells @@RXVT_NAME@@ \s-1NOT\s0 to execute any commands or create a new pty/tty |
|
|
483 | pair but instead use the given filehandle as the tty master. This is |
|
|
484 | useful if you want to drive @@RXVT_NAME@@ as a generic terminal emulator |
|
|
485 | without having to run a program within it. |
|
|
486 | .Sp |
|
|
487 | If this switch is given, @@RXVT_NAME@@ will not create any utmp/wtmp |
|
|
488 | entries and will not tinker with pty/tty permissions \- you have to do that |
|
|
489 | yourself if you want that. |
|
|
490 | .Sp |
|
|
491 | Here is a example in perl that illustrates how this option can be used (a |
|
|
492 | longer example is in \fIdoc/pty\-fd\fR): |
|
|
493 | .Sp |
|
|
494 | .Vb 2 |
|
|
495 | \& use IO::Pty; |
|
|
496 | \& use Fcntl; |
|
|
497 | .Ve |
|
|
498 | .Sp |
|
|
499 | .Vb 2 |
|
|
500 | \& my $pty = new IO::Pty; |
|
|
501 | \& fcntl $pty, F_SETFD, 0; # clear close-on-exec |
|
|
502 | .Ve |
|
|
503 | .Sp |
|
|
504 | .Vb 1 |
|
|
505 | \& system "@@RXVT_NAME@@ -pty-fd " . (fileno $pty) . "&"; |
|
|
506 | .Ve |
|
|
507 | .Sp |
|
|
508 | .Vb 3 |
|
|
509 | \& # now communicate with rxvt |
|
|
510 | \& my $slave = $pty->slave; |
|
|
511 | \& while (<$slave>) { print $slave "got <$_>\en" } |
|
|
512 | .Ve |
466 | .SH "RESOURCES (available also as long\-options)" |
513 | .SH "RESOURCES (available also as long\-options)" |
467 | .IX Header "RESOURCES (available also as long-options)" |
514 | .IX Header "RESOURCES (available also as long-options)" |
468 | Note: `@@RXVT_NAME@@ \-\-help' gives a list of all resources (long |
515 | Note: `@@RXVT_NAME@@ \-\-help' gives a list of all resources (long |
469 | options) compiled into your version. |
516 | options) compiled into your version. |
470 | .PP |
517 | .PP |