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 (readline): fallback to normal gets on

Windows because IO.console.getch is not always do as expected.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2015-01-20 03:30:30 +00:00
parent 506cb40667
commit 64318f2a71
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Tue Jan 20 12:28:37 2015 NAKAMURA Usaku <usa@ruby-lang.org>
* tool/redmine-backporter.rb (readline): fallback to normal gets on
Windows because IO.console.getch is not always do as expected.
Tue Jan 20 11:31:07 2015 NAKAMURA Usaku <usa@ruby-lang.org>
* tool/redmine-backporter.rb: update usage.

View file

@ -201,6 +201,7 @@ def readline(prompt = '')
cls = "\r" + (" " * lx) + "\r" + prompt
console.print prompt
console.flush
return gets.chomp if /mswin|mingw/ =~ RUBY_PLATFORM
line = ''
while 1
case c = console.getch