We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13ce30b commit 2189248Copy full SHA for 2189248
src/utils.jl
@@ -7,7 +7,8 @@ const MODE = Ref{Symbol}(:default)
7
8
function terminal_size(io)
9
ws = TUI.IOCTL.ioctl(io, TUI.IOCTL.TIOCGWINSZ)
10
- return (Int(ws.ws_row), Int(ws.ws_col))
+ # width, height
11
+ return (Int(ws.ws_col), Int(ws.ws_row))
12
end
13
terminal_size() = terminal_size(stdout)
14
0 commit comments