提交 8b9abc29 编写于 作者: M mattip

BUG: ioctl(fd, termios.TIOCGWINSZ, ...) returns 8 bytes

上级 00078257
`ioctl(fd, termios.TIOCGWINSZ, ...)` needs 8 bytes of data
......@@ -213,9 +213,9 @@ else:
import fcntl
import termios
import struct
cr = struct.unpack(
cr = struct.unpack_from(
'hh',
fcntl.ioctl(fd, termios.TIOCGWINSZ, '1234')
fcntl.ioctl(fd, termios.TIOCGWINSZ, '12345678')
)
except:
return None
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册