Skip to content

Commit 2189248

Browse files
committed
Update files
1 parent 13ce30b commit 2189248

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ const MODE = Ref{Symbol}(:default)
77

88
function terminal_size(io)
99
ws = TUI.IOCTL.ioctl(io, TUI.IOCTL.TIOCGWINSZ)
10-
return (Int(ws.ws_row), Int(ws.ws_col))
10+
# width, height
11+
return (Int(ws.ws_col), Int(ws.ws_row))
1112
end
1213
terminal_size() = terminal_size(stdout)
1314

0 commit comments

Comments
 (0)