Use colorized IRB on Windows without checking TERM
This commit is contained in:
parent
0acbdd1ed0
commit
c5cbabf8a8
@ -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…
x
Reference in New Issue
Block a user