mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
Use new name for call to low-level terminalWidth.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user