a terminal size of (0,0) is no terminal size at all; fixes #139

This commit is contained in:
Carl Meyer 2010-07-02 13:07:08 -04:00
parent 06840e857e
commit 9e8cf9a0b4
1 changed files with 2 additions and 0 deletions

View File

@ -451,6 +451,8 @@ def get_terminal_size():
'1234'))
except:
return None
if cr == (0, 0):
return None
return cr
cr = ioctl_GWINSZ(0) or ioctl_GWINSZ(1) or ioctl_GWINSZ(2)
if not cr: