Merge pull request #660 from rtgibbons/clear-screen-bug

filter the clear screen command over ssh connections
This commit is contained in:
Mitchell Hashimoto 2012-01-19 15:10:33 -08:00
commit 1958446b44
1 changed files with 2 additions and 0 deletions

View File

@ -167,6 +167,8 @@ module Vagrant
ch.exec(shell) do |ch2, _| ch.exec(shell) do |ch2, _|
# Setup the channel callbacks so we can get data and exit status # Setup the channel callbacks so we can get data and exit status
ch2.on_data do |ch3, data| ch2.on_data do |ch3, data|
# Filter out the clear screen command
data.gsub!("\e[H", "")
yield :stdout, data if block_given? yield :stdout, data if block_given?
end end