1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Add support for ENV["LINES"] which works

ENV["ROWS"] doesn't for me.
This commit is contained in:
Conrad Irwin 2013-01-08 22:56:41 -08:00
parent 982b4fa92d
commit 44710d952e

View file

@ -23,7 +23,7 @@ class Pry::TerminalInfo
# Otherwise try to use the environment (this may be out of date due
# to window resizing, but it's better than nothing).
[ENV["ROWS"], ENV["COLUMNS"]],
[ENV["LINES"] || ENV["ROWS"], ENV["COLUMNS"]],
# If the user is running within ansicon, then use the screen size
# that it reports (same caveats apply as with ROWS and COLUMNS)