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.259 by sf-exg, Sun Dec 19 20:48:21 2021 UTC

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 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 "Not so secret anymore: $secret\n";
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.
542 559
1295C<perl-ext-common> resource. For example, C<default,-selection> will use 1312C<perl-ext-common> resource. For example, C<default,-selection> will use
1296all the default extensions except C<selection>. 1313all the default extensions except C<selection>.
1297 1314
1298To prohibit autoloading of extensions, you can prefix them with C</>, 1315To prohibit autoloading of extensions, you can prefix them with C</>,
1299which will make urxvt refuse to automatically load them (this can be 1316which will make urxvt refuse to automatically load them (this can be
1300overriden, however, by specifying the extension name again without a 1317overridden, however, by specifying the extension name again without a
1301prefix, though). This does not prohibit extensions themselves loading 1318prefix, though). This does not prohibit extensions themselves loading
1302other extensions. For example, C<default,/background> will keep the 1319other extensions. For example, C<default,/background> will keep the
1303C<background> extension from being loaded when a background OSC sequence 1320C<background> extension from being loaded when a background OSC sequence
1304is received. 1321is received.
1305 1322

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines