Skip to content

Commit

Permalink
Fix: numbers of columns and lines were swapped at not Windows-OS
Browse files Browse the repository at this point in the history
  • Loading branch information
hymkor committed May 6, 2023
1 parent 6774b91 commit 085476b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tty_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (tty *TTY) sizePixel() (int, int, int, int, error) {
if err != nil {
return -1, -1, -1, -1, err
}
return int(ws.Row), int(ws.Col), int(ws.Xpixel), int(ws.Ypixel), nil
return int(ws.Col), int(ws.Row), int(ws.Xpixel), int(ws.Ypixel), nil
}

func (tty *TTY) input() *os.File {
Expand Down

0 comments on commit 085476b

Please sign in to comment.