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

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

Loading…
Cancel
Save