tUse Julia-native displaysize() instead of shelling to tput (thx @andreasnoack) - Granular.jl - Julia package for granular dynamics simulation
(HTM) git clone git://src.adamsgaard.dk/Granular.jl
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit e7d23b8e0cebeae6d6de6e8d8ba0b965c94f7b66
(DIR) parent 62c188870d0004c67b688982b48c0eecaaab31b9
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Thu, 13 Sep 2018 12:43:38 +0200
Use Julia-native displaysize() instead of shelling to tput (thx @andreasnoack)
Diffstat:
M src/io.jl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/src/io.jl b/src/io.jl
t@@ -213,7 +213,7 @@ function status(folder::String=".";
if Sys.iswindows()
cols = 80
else
- cols = parse(Int, read(`tput cols`, String))
+ cols = displaysize(stdout)[2]
end
if write_header
for i=1:cols