From 1c13f6fa53250b938108b8c1586272c302f84577 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Sat, 8 Feb 2025 15:46:41 -0500 Subject: [PATCH] stdout is techncially right check hre --- terminal.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminal.d b/terminal.d index c1613d9..59aefb2 100644 --- a/terminal.d +++ b/terminal.d @@ -2219,7 +2219,7 @@ http://msdn.microsoft.com/en-us/library/windows/desktop/ms683193%28v=vs.85%29.as return [cols, rows]; } else { winsize w; - ioctl(0, TIOCGWINSZ, &w); + ioctl(1, TIOCGWINSZ, &w); return [w.ws_col, w.ws_row]; } }