From c5cbabf8a8aa42b7dcf943c64274489286174108 Mon Sep 17 00:00:00 2001 From: NAKAMURA Usaku Date: Thu, 23 May 2019 15:33:40 +0900 Subject: Use colorized IRB on Windows without checking `TERM` --- lib/irb/color.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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) -- cgit v1.2.3