----- Original Message ----- From: "Florian Frank" <flori / nixe.ping.de> To: "ruby-talk ML" <ruby-talk / ruby-lang.org> Sent: Tuesday, August 12, 2003 6:50 PM Subject: Re: Read character from keyboard > On 2003-08-13 05:18:50 +0900, AndrWagner wrote: > > I wonder if it's possible to read a character from the keyboard > > without pressing enter... > > It's possible: > > c = STDIN.getc I don't think that will work. There are tricks for it. They differ on Windows and Unix -- on the latter you'd set the tty mode to raw or some such. See ch 4 of _The Ruby Way_. Hal -- Hal Fulton hal9000 / hypermetrics.com