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.254 by root, Sat Jul 24 09:48:43 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
1287=item B<perl-ext>: I<string> 1304=item B<perl-ext>: I<string>
1288 1305
1289Comma-separated list(s) of perl extension scripts (default: C<default>) to 1306Comma-separated list(s) of perl extension scripts (default: C<default>) to
1290use in this terminal instance; option B<-pe>. 1307use in this terminal instance; option B<-pe>.
1291 1308
1292Extension names can be prefixed with a C<-> sign to prohibit using 1309Extension names can be prefixed with a C<-> sign to remove them again, in
1293them. This can be useful to selectively disable some extensions loaded 1310case they had been specified earlier. This can be useful to selectively
1294by default, or specified via the C<perl-ext-common> resource. For 1311disable some extensions loaded by default, or specified via the
1295example, C<default,-selection> will use all the default extensions except 1312C<perl-ext-common> resource. For example, C<default,-selection> will use
1296C<selection>. 1313all the default extensions except C<selection>.
1314
1315To prohibit autoloading of extensions, you can prefix them with C</>,
1316which will make urxvt refuse to automatically load them (this can be
1317overridden, however, by specifying the extension name again without a
1318prefix, though). This does not prohibit extensions themselves loading
1319other extensions. For example, C<default,/background> will keep the
1320C<background> extension from being loaded when a background OSC sequence
1321is received.
1297 1322
1298The default set includes the C<selection>, C<option-popup>, 1323The default set includes the C<selection>, C<option-popup>,
1299C<selection-popup>, C<readline> and C<searchable-scrollback> 1324C<selection-popup>, C<readline>, C<searchable-scrollback> and
1300extensions, and extensions which are mentioned in B<keysym> resources. 1325C<confirm-paste> extensions, as well as any extensions which are mentioned
1326in B<keysym> resources.
1301 1327
1302Any extension such that a corresponding resource is given on the 1328Any extension such that a corresponding resource is given on the
1303command line is automatically appended to B<perl-ext>. 1329command line is automatically appended to B<perl-ext>.
1304 1330
1305Each extension is looked up in the library directories, loaded if 1331Each extension is looked up in the library directories, loaded if

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines