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:
parent
b55201dd09
commit
022cbb278f
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue