diff --git a/lib/irb/color.rb b/lib/irb/color.rb index 7af7118849..eb95da8229 100644 --- a/lib/irb/color.rb +++ b/lib/irb/color.rb @@ -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)