filter the clear screen command over ssh connections

This commit is contained in:
Ryan Gibbons 2012-01-19 16:03:59 -07:00
parent 078a15c5c3
commit 8aa1d58b33
1 changed files with 2 additions and 0 deletions

View File

@ -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