mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-16 11:41:39 +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) {
|
func resizeWindow(fd int, winCh <-chan ssh.Window) {
|
||||||
for win := range winCh {
|
for win := range winCh {
|
||||||
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…
x
Reference in New Issue
Block a user