[ruby/irb] Disable pager when TERM is not set too
(https://github.com/ruby/irb/pull/802) https://github.com/ruby/irb/commit/173980974b
This commit is contained in:
parent
ef387e6730
commit
f55746a93d
@ -41,7 +41,7 @@ module IRB
|
|||||||
private
|
private
|
||||||
|
|
||||||
def should_page?
|
def should_page?
|
||||||
IRB.conf[:USE_PAGER] && STDIN.tty? && ENV["TERM"] != "dumb"
|
IRB.conf[:USE_PAGER] && STDIN.tty? && (ENV.key?("TERM") && ENV["TERM"] != "dumb")
|
||||||
end
|
end
|
||||||
|
|
||||||
def content_exceeds_screen_height?(content)
|
def content_exceeds_screen_height?(content)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user