mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 04:55:31 +00:00
ssh/tailssh: pass window size pixels in IoctlSetWinsize events
Fixes #13669 Change-Id: Id44cfbb83183f1bbcbdc38c29238287b9d288707 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
58c6bc2991
commit
dc60c8d786
@ -792,8 +792,10 @@ func (ss *sshSession) launchProcess() error {
|
||||
func resizeWindow(fd int, winCh <-chan ssh.Window) {
|
||||
for win := range winCh {
|
||||
unix.IoctlSetWinsize(fd, syscall.TIOCSWINSZ, &unix.Winsize{
|
||||
Row: uint16(win.Height),
|
||||
Col: uint16(win.Width),
|
||||
Row: uint16(win.Height),
|
||||
Col: uint16(win.Width),
|
||||
Xpixel: uint16(win.WidthPixels),
|
||||
Ypixel: uint16(win.HeightPixels),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user