summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--lib/pure/terminal.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pure/terminal.nim b/lib/pure/terminal.nim
index 15c7f7323..d4734c3e3 100644
--- a/lib/pure/terminal.nim
+++ b/lib/pure/terminal.nim
@@ -69,9 +69,9 @@ when defined(windows):
 
   proc terminalWidth*(): int =
     var w: int = 0
-    w = terminalWidth([ getStdHandle(STD_INPUT_HANDLE),
-                        getStdHandle(STD_OUTPUT_HANDLE),
-                        getStdHandle(STD_ERROR_HANDLE) ] )
+    w = terminalWidthIoctl([ getStdHandle(STD_INPUT_HANDLE),
+                             getStdHandle(STD_OUTPUT_HANDLE),
+                             getStdHandle(STD_ERROR_HANDLE) ] )
     if w > 0: return w
     return 80