Use new name for call to low-level terminalWidth.
This commit is contained in:
parent
7b39545eb3
commit
e4ddcd836c
1 changed files with 3 additions and 3 deletions
|
|
@ -69,9 +69,9 @@ when defined(windows):
|
||||||
|
|
||||||
proc terminalWidth*(): int =
|
proc terminalWidth*(): int =
|
||||||
var w: int = 0
|
var w: int = 0
|
||||||
w = terminalWidth([ getStdHandle(STD_INPUT_HANDLE),
|
w = terminalWidthIoctl([ getStdHandle(STD_INPUT_HANDLE),
|
||||||
getStdHandle(STD_OUTPUT_HANDLE),
|
getStdHandle(STD_OUTPUT_HANDLE),
|
||||||
getStdHandle(STD_ERROR_HANDLE) ] )
|
getStdHandle(STD_ERROR_HANDLE) ] )
|
||||||
if w > 0: return w
|
if w > 0: return w
|
||||||
return 80
|
return 80
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue