lib/travis/cli/command.rb in travis-1.6.2.travis.366.4 vs lib/travis/cli/command.rb in travis-1.6.2.travis.367.4

- old
+ new

@@ -15,11 +15,11 @@ class Command include Tools::Assets extend Parser, Forwardable, Tools::Assets def_delegators :terminal, :agree, :ask, :choose - HighLine.use_color = !Tools::System.windows? && $stdout.tty? + HighLine.use_color = Tools::System.unix? && $stdout.tty? HighLine.color_scheme = HighLine::ColorScheme.new do |cs| cs[:command] = [ :bold ] cs[:error] = [ :red ] cs[:important] = [ :bold, :underline ] cs[:success] = [ :green ] @@ -31,10 +31,10 @@ c.say c.help exit end on('-i', '--[no-]interactive', "be interactive and colorful") do |c, v| - HighLine.use_color = v unless Tools::System.windows? + HighLine.use_color = v if Tools::System.unix? c.force_interactive = v end on('-E', '--[no-]explode', "don't rescue exceptions") on('--skip-version-check', "don't check if travis client is up to date")