At 12:39 -0700 1999/06/21, Sigbjorn Finne (Intl Vendor) wrote:
>Jose Romildo Malaquias <[EMAIL PROTECTED]> writes:
>>
>> How can a single character be read from standard input
>> without echoing it to the console in Haskell 98?
>>
>
>There isn't a standard way of doing that (at least not anymore,
>earlier versions of Haskell did have support for this kind of stuff).
>Hugs offers getCh (and turns off echoing for 'interact'), ghc has
>IOExts.h{Get,Set}Echo. Other Haskell systems have probably similar
>facilities.
I am also worrying about the hope that making use of the C std lib facility
getchar() should resolve it. -- As far as I know, the C standard does not
specify echoing/non-echoing (and line buffering) of the stdin (or its
console), but this is something up to the implementer of the C compiler to
decide.
Hans Aberg
* Email: Hans Aberg <mailto:[EMAIL PROTECTED]>
* Home Page: <http://www.matematik.su.se/~haberg/>
* AMS member listing: <http://www.ams.org/cml/>