Skip to content

Commit

Permalink
fix: windows pty resize coords
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Dec 2, 2023
1 parent 8f6ab9a commit 1e8484a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pty_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (p *conPty) Read(b []byte) (n int, err error) {
func (p *conPty) Resize(width int, height int) error {
p.mtx.RLock()
defer p.mtx.RUnlock()
if err := windows.ResizePseudoConsole(p.handle, windows.Coord{X: int16(height), Y: int16(width)}); err != nil {
if err := windows.ResizePseudoConsole(p.handle, windows.Coord{X: int16(width), Y: int16(height)}); err != nil {
return fmt.Errorf("failed to resize pseudo console: %w", err)
}
return nil
Expand Down

0 comments on commit 1e8484a

Please sign in to comment.