Wrong argument order for TIOCSWINSZ

This commit is contained in:
Kovid Goyal 2016-10-20 08:18:20 +05:30
parent 4a5795c469
commit 176676aadd

View File

@ -80,7 +80,7 @@ def fork_child(cmd, cwd, opts):
def resize_pty(w, h):
master = create_pty()[0]
fcntl.ioctl(master, termios.TIOCSWINSZ, struct.pack('4H', w, h, 0, 0))
fcntl.ioctl(master, termios.TIOCSWINSZ, struct.pack('4H', h, w, 0, 0))
def hangup():