[Haskell-cafe] How to getCh on MS Windows command line?

Ahn, Ki Yung kyagrd at gmail.com
Tue Nov 11 23:15:02 EST 2008


Bulat Ziganshin wrote:
> Hello Ki,
> 
> Tuesday, November 11, 2008, 4:04:11 AM, you wrote:
> 
> i have also linux getCh if you need it, although afaik it's not
> perfect and actually you should use something inside Unix package

On Unix it is not a problem.  We can just use the hSetBuffering and 
hSetEcho functions in the System.IO module to get no buffering and no 
echoing the behavior.

--
   Ahn, Ki Yung



More information about the Glasgow-haskell-users mailing list