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

ruby-changes:40857

From: usa <ko1@a...>
Date: Tue, 8 Dec 2015 12:20:28 +0900 (JST)
Subject: [ruby-changes:40857] usa:r52936 (trunk): * tool/merger.rb: get user's attention by using colored message when requiring operation.

usa	2015-12-08 12:20:07 +0900 (Tue, 08 Dec 2015)

  New Revision: 52936

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

  Log:
    * tool/merger.rb: get user's attention by using colored message when requiring operation.

  Modified files:
    trunk/tool/merger.rb
Index: tool/merger.rb
===================================================================
--- tool/merger.rb	(revision 52935)
+++ tool/merger.rb	(revision 52936)
@@ -60,7 +60,7 @@ end https://github.com/ruby/ruby/blob/trunk/tool/merger.rb#L60
 def interactive str, editfile = nil
   loop do
     yield
-    STDERR.puts "#{str} ([y]es|[a]bort|[r]etry#{'|[e]dit' if editfile})"
+    STDERR.puts "\e[1;33m#{str} ([y]es|[a]bort|[r]etry#{'|[e]dit' if editfile})\e[0m"
     case STDIN.gets
     when /\Aa/i then exit
     when /\Ar/i then redo

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

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