summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-20 03:32:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-20 03:32:10 +0000
commit3b801a8c15622f8db70337d4f16d123328e5fc39 (patch)
tree9102fca6f6cc445a6db975bfd4d2a701f536e7c9 /tool
parent64318f2a71ffd037aef70b3363654c6be8113263 (diff)
redmine-backporter.rb: fix for Windows
* tool/redmine-backporter.rb (readline): make binmode so that single enter works on Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-xtool/redmine-backporter.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/redmine-backporter.rb b/tool/redmine-backporter.rb
index c2dc742..4b63eb1 100755
--- a/tool/redmine-backporter.rb
+++ b/tool/redmine-backporter.rb
@@ -197,6 +197,7 @@ end
def readline(prompt = '')
console = IO.console
+ console.binmode
ly, lx = console.winsize
cls = "\r" + (" " * lx) + "\r" + prompt
console.print prompt