From dc60c8d786b7d28a7a6b0a9897cd2d31548d4724 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Thu, 3 Oct 2024 09:05:29 -0700 Subject: [PATCH] ssh/tailssh: pass window size pixels in IoctlSetWinsize events Fixes #13669 Change-Id: Id44cfbb83183f1bbcbdc38c29238287b9d288707 Signed-off-by: Brad Fitzpatrick --- ssh/tailssh/incubator.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ssh/tailssh/incubator.go b/ssh/tailssh/incubator.go index f47492082..7748376b2 100644 --- a/ssh/tailssh/incubator.go +++ b/ssh/tailssh/incubator.go @@ -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), }) } }