Change type name to be more NEP-1-ish as per Araq request.
This commit is contained in:
parent
5db1de87b1
commit
8df2078f08
2 changed files with 3 additions and 3 deletions
|
|
@ -156,7 +156,7 @@ else:
|
|||
proc terminalWidthIoctl*(fds: openArray[int]): int =
|
||||
## Returns terminal width from first fd that supports the ioctl.
|
||||
|
||||
var win: ioctl_winsize
|
||||
var win: IOctl_WinSize
|
||||
for fd in fds:
|
||||
if ioctl(cint(fd), TIOCGWINSZ, addr win) != -1:
|
||||
return int(win.ws_col)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue