[Haskell-cafe] getChar

Albert Y. C. Lai trebla at vex.net
Tue Mar 25 11:50:45 EDT 2008


Cetin Sert wrote:
> is there a version of getChar that doesn't buffer keyboard input until 
> enter is pressed?

Look into hSetBuffering (module System.IO or IO).  As a quick start:

     hSetBuffering stdin NoBuffering



More information about the Haskell-Cafe mailing list