fix: Swap height and width for TTY size (#1161)

This was causing the TTY to be real wonky on Windows.
It didn't seem to have an effect on Linux, but I suspect
that's because of escape codes.
This commit is contained in:
Kyle Carberry
2022-04-25 15:30:02 -05:00
committed by GitHub
parent 0c9f27c63b
commit 587cbac498
4 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -333,7 +333,7 @@ func (a *agent) handleSSHSession(session ssh.Session) error {
}
go func() {
for win := range windowSize {
err = ptty.Resize(uint16(win.Width), uint16(win.Height))
err = ptty.Resize(uint16(win.Height), uint16(win.Width))
if err != nil {
a.logger.Warn(context.Background(), "failed to resize tty", slog.Error(err))
}