Skip to content

Commit

Permalink
Reinstate fallback to ENV for tty_size()
Browse files Browse the repository at this point in the history
Ref #7297

We really need a better solution for this generally (see #4117/#5709)
but I suppose reinstating `ENV` as fallback is easy for now.
  • Loading branch information
simonster committed Jun 19, 2014
1 parent 377c560 commit 2815c03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base/env.jl
Original file line number Diff line number Diff line change
Expand Up @@ -191,5 +191,6 @@ function tty_size()
return size(os)
end
end
return (24, 80)
return (parseint(get(ENV,"LINES","24")),
parseint(get(ENV,"COLUMNS","80")))
end

0 comments on commit 2815c03

Please sign in to comment.