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

Comparing rxvt-unicode/doc/rxvt.1.pod (file contents):
Revision 1.255 by root, Sat Jul 24 11:00:58 2021 UTC vs.
Revision 1.256 by root, Mon Nov 22 17:00:49 2021 UTC

532 close $pty; 532 close $pty;
533 533
534 # now communicate with rxvt 534 # now communicate with rxvt
535 my $slave = $pty->slave; 535 my $slave = $pty->slave;
536 while (<$slave>) { print $slave "got <$_>\n" } 536 while (<$slave>) { print $slave "got <$_>\n" }
537
538Note that, despite what the name might imply, the file descriptor does not
539need to be a pty, it can be a bi-directional pipe as well (e.g. a unix
540domain or tcp socket). While tty operations cannot be done in this case,
541B<@@RXVT_NAME@@> can still be remote controlled with it:
542
543 use Socket;
544 use Fcntl;
545
546 socketpair my $URXVT, my $slave, Socket::AF_UNIX, Socket::SOCK_STREAM, Socket::PF_UNSPEC;
547 fcntl $slave, Fcntl::F_SETFD, 0;
548 system "exec @@RXVT_NAME|| -pty-fd " . (fileno $slave) . " &";
549 close $slave;
550
551 syswrite $URXVT, "Type a secret password: ";
552 my $secret = do { local $/ = "\r"; <$URXVT> };
553 print "No so secret anymore: $secret\n";
537 554
538=item B<-pe> I<string> 555=item B<-pe> I<string>
539 556
540Comma-separated list of perl extension scripts to use (or not to use) in 557Comma-separated list of perl extension scripts to use (or not to use) in
541this terminal instance. See resource B<perl-ext> for details. 558this terminal instance. See resource B<perl-ext> for details.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines