[Haskell-cafe] Re: Read a single char

Neil Mitchell ndmitchell at gmail.com
Mon Oct 23 21:23:13 EDT 2006


Hi

>    getChar doesn't return until I press Enter. I need something that
> returns immediately after I press any key.

It's a problem with buffering:

http://haskell.org/hoogle/?q=buffering

suggests:

hSetBuffering stdin NoBuffering

Thanks

Neil


More information about the Haskell-Cafe mailing list