main
Vincent Driessen 11 years ago
parent c263f8f600
commit 83382f51d0

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

Loading…
Cancel
Save