Skip to content

Commit

Permalink
Merge pull request #47 from hymkor/fork20230506
Browse files Browse the repository at this point in the history
Numbers of columns and lines were swapped at not Windows-OS
  • Loading branch information
mattn committed May 6, 2023
2 parents 6774b91 + 085476b commit 51197a8
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 51197a8

Please sign in to comment.