diff --git a/arch.go b/arch.go index 87b478a..a237d7f 100644 --- a/arch.go +++ b/arch.go @@ -20,7 +20,7 @@ func resetSignalSIGWINCH() { } func syscallTIOCGWINSZ() ([]byte, error) { - ws, err := unix.IoctlGetWinsize(0, 0) + ws, err := unix.IoctlGetWinsize(0, unix.TIOCGWINSZ) if err != nil { return nil, fmt.Errorf("ioctl error: %v", err) }