On Aug 25, 7:16 pm, Bertram Scharpf <li... / bertram-scharpf.de> wrote:
> Hi,
>
> Am Sonntag, 26. Aug 2007, 07:00:06 +0900 schrieb William James:
>
> > On Aug 25, 3:05 pm, "Barr, Keith" <keith.b... / lmco.com> wrote:
> > > I have a menu that I would like users to respond to
> > > simply by entering a single character.
>
> >   def getkey
> >     select( [$stdin], nil, nil, 0.01 ) ?  c = $stdin.getc : c = nil
> >   end
>
> Why `c= Why twice?

Don't ask me; it's not my code.
>
> It doesn't work here; it still waits for the enter key.

It works here under windoze; I can't test it under unix.

>
> I doubt whether there is any other way than using termios.