Path: utzoo!utgpu!water!watmath!clyde!att!rutgers!cmcl2!nrl-cmf!ames!sgi!andru From: andru@rhialto.SGI.COM (Andrew Myers) Newsgroups: comp.lang.c Subject: Re: Echoing chars and input functions Message-ID: <19664@sgi.SGI.COM> Date: 19 Aug 88 15:58:21 GMT References: <8808160751.aa03016@SMOKE.BRL.MIL> <5940003@hpcupt1.HP.COM> Sender: daemon@sgi.SGI.COM Organization: Silicon Graphics Inc, Mountain View, CA Lines: 17 In article <5940003@hpcupt1.HP.COM>, williamo@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