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|
|
menu.entries.each_with_index do |entry, i|
|
||||||
puts "#{i+1}. #{entry[:name]}"
|
puts "#{i+1}. #{entry[:name]}"
|
||||||
end
|
end
|
||||||
puts menu.prompt unless menu.prompt.nil?
|
print menu.prompt unless menu.prompt.nil?
|
||||||
reply = $stdin.gets.chomp
|
reply = $stdin.gets.chomp
|
||||||
|
|
||||||
i = reply.to_i
|
i = reply.to_i
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user