From 5ffd3f7e103f0c2e4f66ec1aebbc0861dd1a5f28 Mon Sep 17 00:00:00 2001 From: jluehrs2 Date: Mon, 20 Aug 2007 21:52:18 -0500 Subject: 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 --- lib/IO/Pty/Easy.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/IO') 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; } -- cgit v1.2.3-54-g00ecf