Skip to content

Commit

Permalink
Bump version to 0.3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
st0012 committed Jul 25, 2023
1 parent b67ee4e commit 6b40818
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reline/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Reline
VERSION = '0.3.6'
VERSION = '0.3.7'
end
14 changes: 14 additions & 0 deletions test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Before running this code, clear the screen with ctrl + l or command + k
use_csi_s = false # or false
scroll_range = 1..8 # or 1..8
print "\e[H" # move cursor to first row of the screen
print "\e[J" # clear screen
(1..10).each { |y| puts y }
print "\e[#{scroll_range.begin};#{scroll_range.end}r" # set scroll range
if use_csi_s
print "\e[3S" # scroll down 3 rows using CSI+S
else
print "\e[8H\n\n\n" # \n at the bottom of scroll range will also scroll down
end
print "\e[r" # rest scroll range
print "\e[11H" # move cursor to row 11

0 comments on commit 6b40818

Please sign in to comment.