stdout is techncially right check hre

This commit is contained in:
Adam D. Ruppe 2025-02-08 15:46:41 -05:00
parent ea09f6530a
commit 1c13f6fa53

View file

@ -2219,7 +2219,7 @@ http://msdn.microsoft.com/en-us/library/windows/desktop/ms683193%28v=vs.85%29.as
return [cols, rows]; return [cols, rows];
} else { } else {
winsize w; winsize w;
ioctl(0, TIOCGWINSZ, &w); ioctl(1, TIOCGWINSZ, &w);
return [w.ws_col, w.ws_row]; return [w.ws_col, w.ws_row];
} }
} }