From 06340d0ca01eb02b940243c3aa84a5a355cd4cb0 Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Fri, 21 Jul 2023 22:58:50 +0100 Subject: [PATCH] Avoid using CSI # S for scroll down --- lib/reline/ansi.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reline/ansi.rb b/lib/reline/ansi.rb index 1570a99c55..ae5802c731 100644 --- a/lib/reline/ansi.rb +++ b/lib/reline/ansi.rb @@ -337,7 +337,7 @@ def self.erase_after_cursor def self.scroll_down(x) return if x.zero? - @@output.write "\e[#{x}S" + @@output.write "\n" * x end def self.clear_screen