Sha256: 9160ac7805cb4afd4049bd20b4152586ae47759b3b0ac71e15428265c8d51d28
Contents?: true
Size: 513 Bytes
Versions: 1
Compression:
Stored size: 513 Bytes
Contents
require 'rainbow/core' require 'rainbow/wrapper' require 'rainbow/string' require 'rainbow/legacy' unless STDOUT.tty? && STDERR.tty? Rainbow.enabled = false end if ENV['TERM'] == 'dumb' Rainbow.enabled = false end if ENV['CLICOLOR_FORCE'] == '1' Rainbow.enabled = true end # On Windows systems, try to load the local ANSI support library require 'rbconfig' if RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ begin require 'Win32/Console/ANSI' rescue LoadError Rainbow.enabled = false end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rainbow-1.99.0 | lib/rainbow.rb |