diff options
author | jluehrs2 <jluehrs2@uiuc.edu> | 2007-08-20 21:52:18 -0500 |
---|---|---|
committer | jluehrs2 <jluehrs2@uiuc.edu> | 2007-08-20 21:52:18 -0500 |
commit | 5ffd3f7e103f0c2e4f66ec1aebbc0861dd1a5f28 (patch) | |
tree | 76ce9be3c46dd43da1d0c5998cbf66793b636927 | |
parent | e3dc8a051459a96c35d20aee76d75ea7beb8949e (diff) | |
download | io-pty-easy-5ffd3f7e103f0c2e4f66ec1aebbc0861dd1a5f28.tar.gz io-pty-easy-5ffd3f7e103f0c2e4f66ec1aebbc0861dd1a5f28.zip |
we can't handle the term size changes if STDIN isn't a tty, since then we have nowhere to get the size changes from
-rw-r--r-- | lib/IO/Pty/Easy.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/IO/Pty/Easy.pm b/lib/IO/Pty/Easy.pm index c6e3994..d3689b9 100644 --- a/lib/IO/Pty/Easy.pm +++ b/lib/IO/Pty/Easy.pm @@ -3,6 +3,7 @@ use warnings; use strict; use IO::Pty; use Carp; +require POSIX; # Intro documentation {{{ @@ -88,6 +89,7 @@ sub new { bless $self, $class; $self->{pty} = new IO::Pty; + $self->{handle_pty_size} = 0 unless POSIX::isatty(*STDIN); return $self; } |