1
0
Fork 0
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:
NAKAMURA Usaku 2019-05-23 15:33:40 +09:00
parent 0acbdd1ed0
commit c5cbabf8a8
No known key found for this signature in database
GPG key ID: C5FE8AEA64F81259

View file

@ -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)