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:
parent
5b5313b5de
commit
6f9dad48ab
1 changed files with 8 additions and 0 deletions
|
@ -132,6 +132,14 @@ class Pry
|
|||
head = target
|
||||
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
|
||||
pry_instance.repl(head)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue