1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

tool/redmine-backporter.rb: scroll 1 lind on Enter key

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2014-02-27 04:10:00 +00:00
parent c1fc20124c
commit 295e4bfd04

View file

@ -180,10 +180,10 @@ def more(sio)
until ss.eos? until ss.eos?
print ":" print ":"
case c = console.getch case c = console.getch
when ' ', "\x04" when ' '
rows = ss.getrows(lx, ly) rows = ss.getrows(lx, ly)
puts cls + rows puts cls + rows
when 'j', "" when 'j', "\r"
rows = ss.getrows(lx, 1) rows = ss.getrows(lx, 1)
puts cls + rows puts cls + rows
when "q" when "q"