From: Sy Ali Date: 2006-06-07T13:06:20+09:00 Subject: pausing until a character is received I'm struggling to figure out how to pause my script and await a single character. I've been using gets which works to pause but I'd like to do it more cleanly. My best lead has been in this ruby quiz[1], and the reference to STDIN.getc .. however, having fumbled from a few angles, I'm still not able to get it working the way I want. I'd like to pause until any character is received, and be able to gracefully rescue from an Interrupt. The best I can do is pause on any character but ignore the interrupt. So ^c would act like any other character.. which isn't what I want. [1] http://www.rubyquiz.com/quiz5.html