mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ end
|
|||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue