mirror of https://github.com/pypa/pip
a terminal size of (0,0) is no terminal size at all; fixes #139
This commit is contained in:
parent
06840e857e
commit
9e8cf9a0b4
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue