26 Mar
2008
26 Mar
'08
12: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
6784
Age (days ago)
6784
Last active (days ago)
1 comments
2 participants
participants (2)
-
Albert Y. C. Lai -
Cetin Sert