Skip to content

Commit

Permalink
fix(termios): GetWinsize ioctl constant
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Jan 31, 2025
1 parent d9da2a4 commit 70b8bc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion termios/termios.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func SetWinsize(fd int, w *unix.Winsize) error {

// GetWinsize gets window size for an fd.
func GetWinsize(fd int) (*unix.Winsize, error) {
return unix.IoctlGetWinsize(fd, ioctlSetWinSize)
return unix.IoctlGetWinsize(fd, ioctlGetWinSize)
}

// GetTermios gets the termios of the given fd.
Expand Down

0 comments on commit 70b8bc4

Please sign in to comment.