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.
2 parents c4a1dd9 + ffd34d8 commit 9d55682Copy full SHA for 9d55682
src/utils.jl
@@ -10,7 +10,11 @@ function terminal_size(io)
10
# width, height
11
return (Int(ws.ws_col), Int(ws.ws_row))
12
end
13
-terminal_size() = terminal_size(stdout)
+
14
+function terminal_size()
15
+ ds = displaysize(stdout)
16
+ return (last(ds), first(ds))
17
+end
18
19
terminal_size(io, coord::Int) = terminal_size(io)[coord]
20
terminal_size(coord::Int) = terminal_size(stdout, coord)
0 commit comments