mirror of https://github.com/tqdm/tqdm.git
parent
bad8f66bde
commit
d0483be6c0
|
@ -277,7 +277,7 @@ def _screen_shape_linux(fp): # pragma: no cover
|
||||||
from fcntl import ioctl
|
from fcntl import ioctl
|
||||||
from termios import TIOCGWINSZ
|
from termios import TIOCGWINSZ
|
||||||
except ImportError:
|
except ImportError:
|
||||||
return None
|
return None, None
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
rows, cols = array('h', ioctl(fp, TIOCGWINSZ, '\0' * 8))[:2]
|
rows, cols = array('h', ioctl(fp, TIOCGWINSZ, '\0' * 8))[:2]
|
||||||
|
|
Loading…
Reference in New Issue