From a0f2ca5e8b87e7774328c373735a83849ace1815 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 17 Jan 2014 10:29:20 -0800 Subject: [PATCH] core: clarify some logic for colors --- lib/vagrant/util/platform.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/util/platform.rb b/lib/vagrant/util/platform.rb index 3e454a0e9..ac3f8ecf3 100644 --- a/lib/vagrant/util/platform.rb +++ b/lib/vagrant/util/platform.rb @@ -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