Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!homxb!whuts!picuxa!gp From: gp@picuxa.UUCP (Greg Pasquariello X1190) Newsgroups: comp.lang.c Subject: Re: no echo? Summary: use getch() Keywords: help Message-ID: <455@picuxa.UUCP> Date: 21 Jan 88 12:50:39 GMT References: <128@dcrbg1.UUCP> Organization: AT&T Information Systems, Parsippany NJ Lines: 18 In article <128@dcrbg1.UUCP>, bcf2303@dcrbg1.UUCP (Wing Chow) writes: > > > can you tell me how to avoid 'echoing' back to the user what he/she > is typing in? > > thanks again for any help as i am new to unix and c. You don't mention which machine or compiler you are using, but the standard libraries for a few diffenent DOS C compilers contain the function getch(). This function will do exactly what you want it to do. If your library does not include getch(), you may be able to do it with the systems DOS interface (i.e. bdos() or intdos()). Unix Sys 5 has a library function called getpass() that will prompt the user with a string (of your choosing), and get the typed response without echoing the characters to the screen.