main
Vincent Driessen 11 years ago
parent c263f8f600
commit 83382f51d0

@ -20,7 +20,9 @@ from .compat import is_python_version
def gettermsize():
def ioctl_GWINSZ(fd):
try:
import fcntl, termios, struct # noqa
import fcntl
import struct
import termios
cr = struct.unpack('hh', fcntl.ioctl(fd, termios.TIOCGWINSZ, '1234'))
except:
return None

Loading…
Cancel
Save