summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Toolset.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Client/Toolset.py')
-rw-r--r--src/lib/Client/Toolset.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/Client/Toolset.py b/src/lib/Client/Toolset.py
index 7c2da5f14..5436a595e 100644
--- a/src/lib/Client/Toolset.py
+++ b/src/lib/Client/Toolset.py
@@ -92,6 +92,8 @@ class Toolset(object):
height, width = struct.unpack('hhhh',
fcntl.ioctl(0, termios.TIOCGWINSZ,
"\000"*8))[0:2]
+ if height == 0 or width == 0:
+ return 25, 80
return height, width
except:
return 25, 80