There seems to be a problem with IO::Pty's
clone_winsize_from() function. The $winsize variable,
passed to the ioctl, is initalized to an empty string.
At least on my system (Perl 5.8, Cygwin), Perl dies
saying "ioctl overflowed 3rd argument". It turns out you
need to make a buffer big enough for the ioctl to fill in,
and here that's 8 bytes, although it might be bigger or
smaller on other systems. If I initialize $winsize
to "\0"x8, then everything works.
Log in to post a comment.