filter the clear screen command over ssh connections
This commit is contained in:
parent
078a15c5c3
commit
8aa1d58b33
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue