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

Comparing rxvt-unicode/doc/pty-fd (file contents):
Revision 1.1 by root, Thu Feb 17 15:07:48 2005 UTC vs.
Revision 1.2 by root, Thu Feb 17 15:13:47 2005 UTC

5 5
6my $pty = new IO::Pty; 6my $pty = new IO::Pty;
7fcntl $pty, F_SETFD, 0; # clear close-on-exec 7fcntl $pty, F_SETFD, 0; # clear close-on-exec
8 8
9system "rxvt -pty-fd " . (fileno $pty) . "&"; 9system "rxvt -pty-fd " . (fileno $pty) . "&";
10close $pty;
10 11
11# now communicate with rxvt 12# now communicate with rxvt
12my $slave = $pty->slave; 13my $slave = $pty->slave;
13 14
14print $slave "hi! please enter something and press return (ctrl-d to exit):\n"; 15print $slave "hi! please enter something and press return (ctrl-d to exit):\n";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines