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:
parent
982b4fa92d
commit
44710d952e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue