mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
+1
-1
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user