The following happens in hugs 1.4 (970719) on Solaris:
Program:

   main :: IO ()
   main =
      getChar >>= \c ->
      putChar c >>
      main

Result:

   Main> main
   abc
   aabbcc

I can understand two of the three times the input gets echoed, but not the
third.  Using getCh from IOExtensions instead of getChar removes one lot of
echoing, but not the other (and the program still works line-by-line instead
of character-by-character):

   Main> main
   abc
   abc

Is terminal input broken, or am I missing something?

Thanks,

Ian                                [EMAIL PROTECTED],  Tel: 0117 9545148

Reply via email to