core: clarify some logic for colors

This commit is contained in:
Mitchell Hashimoto 2014-01-17 10:29:20 -08:00
parent 8a12bf8694
commit a0f2ca5e8b
1 changed files with 6 additions and 1 deletions

View File

@ -107,7 +107,12 @@ module Vagrant
# Returns a boolean noting whether the terminal supports color.
# output.
def terminal_supports_colors?
return ENV.has_key?("ANSICON") || cygwin? if windows?
if windows?
return true if ENV.has_key?("ANSICON")
return true if cygwin?
return false
end
true
end