Wrong argument order for TIOCSWINSZ
This commit is contained in:
parent
4a5795c469
commit
176676aadd
@ -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():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user