debrew: take input from same line as prompt

This commit is contained in:
Jack Nagel 2012-11-09 15:18:01 -06:00
parent bba85b4bd9
commit 8d7be8c0b4

View File

@ -26,7 +26,7 @@ def choose
menu.entries.each_with_index do |entry, i|
puts "#{i+1}. #{entry[:name]}"
end
puts menu.prompt unless menu.prompt.nil?
print menu.prompt unless menu.prompt.nil?
reply = $stdin.gets.chomp
i = reply.to_i