mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use colorized IRB on Windows without checking TERM
This commit is contained in:
parent
0acbdd1ed0
commit
c5cbabf8a8
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ module IRB # :nodoc:
|
|||
|
||||
class << self
|
||||
def colorable?
|
||||
$stdout.tty? && ENV.key?('TERM') && ENV['TERM'] != 'dumb'
|
||||
$stdout.tty? && (/mswin|mingw/ =~ RUBY_PLATFORM || (ENV.key?('TERM') && ENV['TERM'] != 'dumb'))
|
||||
end
|
||||
|
||||
def inspect_colorable?(obj)
|
||||
|
|
Loading…
Reference in a new issue