From 8aa1d58b33fcf2d4de962a09829154b590b27534 Mon Sep 17 00:00:00 2001 From: Ryan Gibbons Date: Thu, 19 Jan 2012 16:03:59 -0700 Subject: [PATCH] filter the clear screen command over ssh connections --- lib/vagrant/communication/ssh.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/vagrant/communication/ssh.rb b/lib/vagrant/communication/ssh.rb index 9797ab5ea..0230b6981 100644 --- a/lib/vagrant/communication/ssh.rb +++ b/lib/vagrant/communication/ssh.rb @@ -167,6 +167,8 @@ module Vagrant ch.exec(shell) do |ch2, _| # Setup the channel callbacks so we can get data and exit status ch2.on_data do |ch3, data| + # Filter out the clear screen command + data.gsub!("\e[H", "") yield :stdout, data if block_given? end