[前][次][番号順一覧][スレッド一覧]

ruby-changes:37265

From: nobu <ko1@a...>
Date: Tue, 20 Jan 2015 12:32:42 +0900 (JST)
Subject: [ruby-changes:37265] nobu:r49346 (trunk): redmine-backporter.rb: fix for Windows

nobu	2015-01-20 12:32:10 +0900 (Tue, 20 Jan 2015)

  New Revision: 49346

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49346

  Log:
    redmine-backporter.rb: fix for Windows
    
    * tool/redmine-backporter.rb (readline): make binmode so that
      single enter works on Windows.

  Modified files:
    trunk/tool/redmine-backporter.rb
Index: tool/redmine-backporter.rb
===================================================================
--- tool/redmine-backporter.rb	(revision 49345)
+++ tool/redmine-backporter.rb	(revision 49346)
@@ -197,6 +197,7 @@ end https://github.com/ruby/ruby/blob/trunk/tool/redmine-backporter.rb#L197
 
 def readline(prompt = '')
   console = IO.console
+  console.binmode
   ly, lx = console.winsize
   cls = "\r" + (" " * lx) + "\r" + prompt
   console.print prompt

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]