
25 Mar
2008
25 Mar
'08
11:36 a.m.
Hi, is there a version of getChar that doesn't buffer keyboard input until enter is pressed? specialReadln :: IO String specialReadln = do c ← getChar if c == '#' then do return [] else do cs ← specialReadln return (c:cs) I want the input process to terminate when '#' or any other specific key has been pressed. Best Regards, Cetin Sert
6267
Age (days ago)
6267
Last active (days ago)
1 comments
2 participants
participants (2)
-
Albert Y. C. Lai
-
Cetin Sert