Use print for clearing the first line.
Using Kernel.puts would cause an extra newline to be displayed in certain terminals (e.g. urxvt). Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
This commit is contained in:
parent
0d1f6d5145
commit
96a4ca8eca
|
@ -138,7 +138,7 @@ class Pry
|
|||
# Clear the line before starting Pry. This fixes the issue discussed here:
|
||||
# https://github.com/pry/pry/issues/566
|
||||
if Pry.config.auto_indent
|
||||
puts defined?(Win32::Console) ? "\e[0F" : "\e[0A\e[0G"
|
||||
Kernel.print defined?(Win32::Console) ? "\e[0F" : "\e[0A\e[0G"
|
||||
end
|
||||
|
||||
# Enter the matrix
|
||||
|
|
Loading…
Reference in New Issue