We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46db711 commit b67ee4eCopy full SHA for b67ee4e
lib/reline/ansi.rb
@@ -335,9 +335,12 @@ def self.erase_after_cursor
335
@@output.write "\e[K"
336
end
337
338
+ # This only works when the cursor is at the bottom of the scroll range
339
+ # For more details, see https://github.com/ruby/reline/pull/577#issuecomment-1646679623
340
def self.scroll_down(x)
341
return if x.zero?
- @@output.write "\e[#{x}S"
342
+ # We use `\n` instead of CSI + S because CSI + S would cause https://github.com/ruby/reline/issues/576
343
+ @@output.write "\n" * x
344
345
346
def self.clear_screen
0 commit comments