Skip to content

Commit 486d5b9

Browse files
committed
fix redraw issue in screen
1 parent 58dfd13 commit 486d5b9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tsshd/session.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ func (c *sessionContext) SetSize(cols, rows int, redraw bool) error {
203203
}
204204
if redraw {
205205
_ = c.pty.Resize(cols+1, rows)
206+
time.Sleep(10 * time.Millisecond)
206207
}
207208
if err := c.pty.Resize(cols, rows); err != nil {
208209
return fmt.Errorf("pty set size failed: %v", err)

0 commit comments

Comments
 (0)