From 7cde97ac32d2d58f4cc0c4a35fd31247ae000a84 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Fri, 22 Jun 2012 10:00:43 +0200 Subject: [PATCH] Use a different ANSI sequences for clearing lines. Signed-off-by: Yorick Peterse --- lib/pry/pry_class.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pry/pry_class.rb b/lib/pry/pry_class.rb index 2019403c..cc399014 100644 --- a/lib/pry/pry_class.rb +++ b/lib/pry/pry_class.rb @@ -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 - Kernel.print defined?(Win32::Console) ? "\e[0F" : "\e[0A\e[0G" + Kernel.print defined?(Win32::Console) ? "\e[0F" : "\e[0G" end # Enter the matrix