From 0874d4a77ae836d18138ef1b12a3f8235806b137 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 6 Apr 2013 16:07:20 -0700 Subject: [PATCH] Assume Cygwin has a TTY for input [GH-1430] --- CHANGELOG.md | 1 + lib/vagrant/ui.rb | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 64de811a4..14405c7b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -49,6 +49,7 @@ BUG FIXES: that is also in use. - Cygwin will always output color by default. Specify `--no-color` to override this. + - Assume Cygwin has a TTY for asking for input. [GH-1430] ## 1.1.6 (April 3, 2013) diff --git a/lib/vagrant/ui.rb b/lib/vagrant/ui.rb index 5f70f38d0..c59be28e6 100644 --- a/lib/vagrant/ui.rb +++ b/lib/vagrant/ui.rb @@ -2,6 +2,7 @@ require "thread" require "log4r" +require "vagrant/util/platform" require "vagrant/util/safe_puts" module Vagrant @@ -77,7 +78,7 @@ module Vagrant super(message) # We can't ask questions when the output isn't a TTY. - raise Errors::UIExpectsTTY if !$stdin.tty? + raise Errors::UIExpectsTTY if !$stdin.tty? && !Vagrant::Util::Platform.cygwin? # Setup the options so that the new line is suppressed opts ||= {}