I am writing a tiny interactive command line tool prompting the user to press a numeric key. It should continue directly after the first key press/input.
Currently I am doing this to capture the user's input
puts "yes, please ..."
gets.chomp
... however this requires pressing "enter" to confirm the input. How can return the input value right after the first key press?