core: clarify some logic for colors
This commit is contained in:
parent
8a12bf8694
commit
a0f2ca5e8b
|
@ -107,7 +107,12 @@ module Vagrant
|
||||||
# Returns a boolean noting whether the terminal supports color.
|
# Returns a boolean noting whether the terminal supports color.
|
||||||
# output.
|
# output.
|
||||||
def terminal_supports_colors?
|
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
|
true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue