Echoing chars and input functions
Andrew Myers
andru at rhialto.SGI.COM
Sat Aug 20 01:58:21 AEST 1988
In article <5940003 at hpcupt1.HP.COM>, williamo at hpcupt1.HP.COM (William O'Saughnessy) writes:
>
> OK, what is the proper and portable way to get a character from stdin
> without having it echoed to the screen?!!!!
>
> Basic may have C beat here it defines the way with INKEY but there
> appears to be no machine independent way of doing it in C!
Mentioning "INKEY" and machine independence in the same sentence is a
bit ridiculous. Systems in which the ability to control character echo
are typically interpreted, and the language effectively is the operating
system. As indicated by another poster, the task of controlling character
echo is usually handled through the operating system. Many BASICs don't
even provide this capability (e.g. Applesoft, as I recall. [Yes, you could
do it through PEEK, but that's hardly the same]).
Andrew
More information about the Comp.lang.c
mailing list