ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/doc/rxvt.1.man.in
(Generate patch)

Comparing rxvt-unicode/doc/rxvt.1.man.in (file contents):
Revision 1.122 by root, Thu Aug 26 03:58:28 2021 UTC vs.
Revision 1.123 by root, Tue Nov 23 10:54:27 2021 UTC

1.\" Automatically generated by Pod::Man 4.11 (Pod::Simple 3.35) 1.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.43)
2.\" 2.\"
3.\" Standard preamble: 3.\" Standard preamble:
4.\" ======================================================================== 4.\" ========================================================================
5.de Sp \" Vertical space (when we can't use .PP) 5.de Sp \" Vertical space (when we can't use .PP)
6.if t .sp .5v 6.if t .sp .5v
131.\} 131.\}
132.rm #[ #] #H #V #F C 132.rm #[ #] #H #V #F C
133.\" ======================================================================== 133.\" ========================================================================
134.\" 134.\"
135.IX Title "@@RXVT_NAME@@ 1" 135.IX Title "@@RXVT_NAME@@ 1"
136.TH @@RXVT_NAME@@ 1 "2021-07-28" "@@RXVT_VERSION@@" "RXVT-UNICODE" 136.TH @@RXVT_NAME@@ 1 "2021-11-22" "@@RXVT_VERSION@@" "RXVT-UNICODE"
137.\" For nroff, turn off justification. Always turn off hyphenation; it makes 137.\" For nroff, turn off justification. Always turn off hyphenation; it makes
138.\" way too many mistakes in technical documents. 138.\" way too many mistakes in technical documents.
139.if n .ad l 139.if n .ad l
140.nh 140.nh
141.SH "NAME" 141.SH "NAME"
604\& 604\&
605\& # now communicate with rxvt 605\& # now communicate with rxvt
606\& my $slave = $pty\->slave; 606\& my $slave = $pty\->slave;
607\& while (<$slave>) { print $slave "got <$_>\en" } 607\& while (<$slave>) { print $slave "got <$_>\en" }
608.Ve 608.Ve
609.Sp
610Note that, despite what the name might imply, the file descriptor does not
611need to be a pty, it can be a bi-directional pipe as well (e.g. a unix
612domain or tcp socket). While tty operations cannot be done in this case,
613\&\fB@@RXVT_NAME@@\fR can still be remote controlled with it:
614.Sp
615.Vb 2
616\& use Socket;
617\& use Fcntl;
618\&
619\& socketpair my $URXVT, my $slave, Socket::AF_UNIX, Socket::SOCK_STREAM, Socket::PF_UNSPEC;
620\& fcntl $slave, Fcntl::F_SETFD, 0;
621\& system "exec @@RXVT_NAME@@ \-pty\-fd " . (fileno $slave) . " &";
622\& close $slave;
623\&
624\& syswrite $URXVT, "Type a secret password: ";
625\& my $secret = do { local $/ = "\er"; <$URXVT> };
626\& print "Not so secret anymore: $secret\en";
627.Ve
609.IP "\fB\-pe\fR \fIstring\fR" 4 628.IP "\fB\-pe\fR \fIstring\fR" 4
610.IX Item "-pe string" 629.IX Item "-pe string"
611Comma-separated list of perl extension scripts to use (or not to use) in 630Comma-separated list of perl extension scripts to use (or not to use) in
612this terminal instance. See resource \fBperl-ext\fR for details. 631this terminal instance. See resource \fBperl-ext\fR for details.
613.SH "RESOURCES" 632.SH "RESOURCES"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines