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

Comparing rxvt-unicode/doc/rxvt.1.txt (file contents):
Revision 1.17 by root, Thu Feb 17 15:07:48 2005 UTC vs.
Revision 1.18 by root, Fri Feb 18 12:15:07 2005 UTC

359 use IO::Pty; 359 use IO::Pty;
360 use Fcntl; 360 use Fcntl;
361 361
362 my $pty = new IO::Pty; 362 my $pty = new IO::Pty;
363 fcntl $pty, F_SETFD, 0; # clear close-on-exec 363 fcntl $pty, F_SETFD, 0; # clear close-on-exec
364
365 system "rxvt -pty-fd " . (fileno $pty) . "&"; 364 system "rxvt -pty-fd " . (fileno $pty) . "&";
365 close $pty;
366 366
367 # now communicate with rxvt 367 # now communicate with rxvt
368 my $slave = $pty->slave; 368 my $slave = $pty->slave;
369 while (<$slave>) { print $slave "got <$_>\n" } 369 while (<$slave>) { print $slave "got <$_>\n" }
370 370

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines