# File lib/nanoc/cli.rb, line 167
  def self.enable_ansi_colors?
    return false if !$stdout.tty?

    begin
      require 'Win32/Console/ANSI' if RUBY_PLATFORM =~ /mswin|mingw/
    rescue LoadError
      return false
    end
    
    return true
  end