Skip to content

Commit

Permalink
Try to inform user about winsize errors
Browse files Browse the repository at this point in the history
  • Loading branch information
majst01 committed Sep 11, 2024
1 parent ef651c8 commit 11279f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/console/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func Open(s ssh.Session, cmd *exec.Cmd) error {
err := pty.Setsize(f, &pty.Winsize{X: uint16(win.Width), Y: uint16(win.Height)}) // nolint:gosec
if err != nil {
winSizeErr = fmt.Errorf("failed to set window size:%w", err)
_, _ = io.WriteString(s, winSizeErr.Error())
}
}
}()
Expand Down

0 comments on commit 11279f9

Please sign in to comment.