ssh/tailssh: pass window size pixels in IoctlSetWinsize events

Fixes #13669

Change-Id: Id44cfbb83183f1bbcbdc38c29238287b9d288707
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
pull/13679/head
Brad Fitzpatrick 2 months ago committed by Brad Fitzpatrick
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…
Cancel
Save