From e4ddcd836ce723859b71d2d52be85e8eaed7e119 Mon Sep 17 00:00:00 2001 From: Charles Blake Date: Thu, 1 Sep 2016 14:44:33 -0400 Subject: [PATCH] Use new name for call to low-level terminalWidth. --- lib/pure/terminal.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pure/terminal.nim b/lib/pure/terminal.nim index 15c7f73235..d4734c3e37 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