summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjluehrs2 <jluehrs2@uiuc.edu>2007-08-20 21:52:18 -0500
committerjluehrs2 <jluehrs2@uiuc.edu>2007-08-20 21:52:18 -0500
commit5ffd3f7e103f0c2e4f66ec1aebbc0861dd1a5f28 (patch)
tree76ce9be3c46dd43da1d0c5998cbf66793b636927
parente3dc8a051459a96c35d20aee76d75ea7beb8949e (diff)
downloadio-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.pm2
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;
}