1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Clear the current line before starting Pry.

This should fix #566.

Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
This commit is contained in:
Yorick Peterse 2012-05-25 16:49:50 +02:00
parent 5b5313b5de
commit 6f9dad48ab

View file

@ -132,6 +132,14 @@ class Pry
head = target head = target
end end
# Clear the line before starting Pry. This fixes the issue discussed here:
# https://github.com/pry/pry/issues/566
if defined?(Win32::Console)
puts "\e[0F"
else
puts "\e[0A\e[0G"
end
# Enter the matrix # Enter the matrix
pry_instance.repl(head) pry_instance.repl(head)
end end