Path: utzoo!yunexus!geac!syntron!jtsv16!uunet!lll-winken!lll-tis!ames!pasteur!ucbvax!decwrl!adobe!steel!burgett
From: burgett@steel.COM (Michael Burgett)
Newsgroups: comp.lang.c
Subject: Re: Re: Echoing chars and input functions
Message-ID: <4164@adobe.COM>
Date: 19 Aug 88 13:43:50 GMT
Article-I.D.: adobe.4164
References: <8808160751.aa03016@SMOKE.BRL.MIL> <5940003@hpcupt1.HP.COM>
Sender: news@adobe.COM
Reply-To: burgett@steel.UUCP (Michael Burgett)
Organization: Adobe Systems Incorporated, Mountain View
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!

Sigh... if you are on unix, check the ioctl system library functions to see
how to toggle terminal echo, if your're on some other OS RTFB for that OS, 
C treats io as a file... do you *really* think C would echo characters read 
from a file back to it?  One has to remember that C was designed to be 
portable... a claim that I've never (seriously) heard mentioned about that
other language (and I do use that term loosely...) you mentioned.

	mike burget

			burgett!adobe@decwrl.dec.com