summaryrefslogtreecommitdiff
path: root/pexpect/tests/sigwinch_report.py
diff options
context:
space:
mode:
Diffstat (limited to 'pexpect/tests/sigwinch_report.py')
-rw-r--r--pexpect/tests/sigwinch_report.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pexpect/tests/sigwinch_report.py b/pexpect/tests/sigwinch_report.py
index bb2f45b..f7090cc 100644
--- a/pexpect/tests/sigwinch_report.py
+++ b/pexpect/tests/sigwinch_report.py
@@ -4,7 +4,7 @@ import signal, os
def getwinsize():
s = struct.pack('HHHH', 0, 0, 0, 0)
x = fcntl.ioctl(sys.stdout.fileno(), termios.TIOCGWINSZ, s)
- return struct.unpack('HHHH', x)
+ return struct.unpack('HHHH', x)[0:2]
def handler(signum, frame):
print 'SIGWINCH:', getwinsize ()