lib/nanoc3/cli/logger.rb in nanoc3-3.1.2 vs lib/nanoc3/cli/logger.rb in nanoc3-3.1.3

- old
+ new

@@ -26,16 +26,16 @@ attr_accessor :color alias_method :color?, :color def initialize @level = :high - @color = true + @color = $stdout.tty? # Try enabling color support on Windows begin require 'Win32/Console/ANSI' if RUBY_PLATFORM =~/mswin|mingw/ rescue LoadError - warn 'The win32console gem is not available. Install it to enable color support on Windows.' + @color = false end end # Logs a file-related action. #