… | |
… | |
543 | use Socket; |
543 | use Socket; |
544 | use Fcntl; |
544 | use Fcntl; |
545 | |
545 | |
546 | socketpair my $URXVT, my $slave, Socket::AF_UNIX, Socket::SOCK_STREAM, Socket::PF_UNSPEC; |
546 | socketpair my $URXVT, my $slave, Socket::AF_UNIX, Socket::SOCK_STREAM, Socket::PF_UNSPEC; |
547 | fcntl $slave, Fcntl::F_SETFD, 0; |
547 | fcntl $slave, Fcntl::F_SETFD, 0; |
548 | system "exec @@RXVT_NAME|| -pty-fd " . (fileno $slave) . " &"; |
548 | system "exec @@RXVT_NAME@@ -pty-fd " . (fileno $slave) . " &"; |
549 | close $slave; |
549 | close $slave; |
550 | |
550 | |
551 | syswrite $URXVT, "Type a secret password: "; |
551 | syswrite $URXVT, "Type a secret password: "; |
552 | my $secret = do { local $/ = "\r"; <$URXVT> }; |
552 | my $secret = do { local $/ = "\r"; <$URXVT> }; |
553 | print "Not so secret anymore: $secret\n"; |
553 | print "Not so secret anymore: $secret\n"; |
… | |
… | |
1312 | C<perl-ext-common> resource. For example, C<default,-selection> will use |
1312 | C<perl-ext-common> resource. For example, C<default,-selection> will use |
1313 | all the default extensions except C<selection>. |
1313 | all the default extensions except C<selection>. |
1314 | |
1314 | |
1315 | To prohibit autoloading of extensions, you can prefix them with C</>, |
1315 | To prohibit autoloading of extensions, you can prefix them with C</>, |
1316 | which will make urxvt refuse to automatically load them (this can be |
1316 | which will make urxvt refuse to automatically load them (this can be |
1317 | overriden, however, by specifying the extension name again without a |
1317 | overridden, however, by specifying the extension name again without a |
1318 | prefix, though). This does not prohibit extensions themselves loading |
1318 | prefix, though). This does not prohibit extensions themselves loading |
1319 | other extensions. For example, C<default,/background> will keep the |
1319 | other extensions. For example, C<default,/background> will keep the |
1320 | C<background> extension from being loaded when a background OSC sequence |
1320 | C<background> extension from being loaded when a background OSC sequence |
1321 | is received. |
1321 | is received. |
1322 | |
1322 | |