debrew: take input from same line as prompt
This commit is contained in:
parent
bba85b4bd9
commit
8d7be8c0b4
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user