From: "Hal E. Fulton" Date: 2003-08-13T08:55:07+09:00 Subject: Re: Read character from keyboard ----- Original Message ----- From: "Florian Frank" To: "ruby-talk ML" Sent: Tuesday, August 12, 2003 6:50 PM Subject: Re: Read character from keyboard > On 2003-08-13 05:18:50 +0900, Andr� Wagner 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