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

Do not color IRB output on 'dumb' TERM

Co-Authored-By: k0kubun <takashikkbn@gmail.com>
Closes: https://github.com/ruby/ruby/pull/2150
This commit is contained in:
Pocket7878 2019-04-25 23:47:12 +09:00 committed by Takashi Kokubun
parent b55201dd09
commit 022cbb278f
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

View file

@ -38,7 +38,7 @@ module IRB # :nodoc:
class << self
def colorable?
$stdout.tty? && ENV.key?('TERM')
$stdout.tty? && ENV.key?('TERM') && ENV['TERM'] != 'dumb'
end
def inspect_colorable?(obj)