Skip to content

Commit

Permalink
Avoid using CSI # S for scroll down
Browse files Browse the repository at this point in the history
  • Loading branch information
st0012 committed Jul 21, 2023
1 parent 46db711 commit 06340d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reline/ansi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 06340d0

Please sign in to comment.