From 5fe8cbb083440dd6014d3455a10be1d4835aa9cc Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 7 Apr 2013 13:48:00 -0700 Subject: [PATCH] Proper clear line text for Cygwin --- CHANGELOG.md | 2 ++ lib/vagrant/ui.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1dc5cc283..1c013e946 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -55,6 +55,8 @@ BUG FIXES: - Assume Cygwin has a TTY for asking for input. [GH-1430] - Expand Cygwin paths to Windows paths for calls to VBoxManage and for VirtualBox shared folders. + - Output the proper clear line text for shells in Cygwin when + reporting dynamic progress. ## 1.1.6 (April 3, 2013) diff --git a/lib/vagrant/ui.rb b/lib/vagrant/ui.rb index c59be28e6..ed3438c21 100644 --- a/lib/vagrant/ui.rb +++ b/lib/vagrant/ui.rb @@ -113,7 +113,7 @@ module Vagrant def clear_line reset = "\r" - reset += "\e[0K" unless Util::Platform.windows? + reset += "\e[0K" if Util::Platform.windows? && !Util::Platform.cygwin? info(reset, :new_line => false) end