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:
Brad Fitzpatrick 2024-10-03 09:05:29 -07:00 committed by Brad Fitzpatrick
parent 58c6bc2991
commit dc60c8d786

View File

@ -794,6 +794,8 @@ func resizeWindow(fd int, winCh <-chan ssh.Window) {
unix.IoctlSetWinsize(fd, syscall.TIOCSWINSZ, &unix.Winsize{
Row: uint16(win.Height),
Col: uint16(win.Width),
Xpixel: uint16(win.WidthPixels),
Ypixel: uint16(win.HeightPixels),
})
}
}