From 70b8bc4d46effa6f6c6ff1430c0e010f195e394d Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Fri, 31 Jan 2025 12:21:47 -0500 Subject: [PATCH] fix(termios): GetWinsize ioctl constant --- termios/termios.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/termios/termios.go b/termios/termios.go index 7b89ba1b..07cdacf2 100644 --- a/termios/termios.go +++ b/termios/termios.go @@ -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.