* tool/merger.rb: get user's attention by using colored message when requiring operation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
10952d16e6
commit
be801955e9
@ -60,7 +60,7 @@ end
|
|||||||
def interactive str, editfile = nil
|
def interactive str, editfile = nil
|
||||||
loop do
|
loop do
|
||||||
yield
|
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
|
case STDIN.gets
|
||||||
when /\Aa/i then exit
|
when /\Aa/i then exit
|
||||||
when /\Ar/i then redo
|
when /\Ar/i then redo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user