Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uupsi!sunic!news.funet.fi!kannel!junki From: junki@lut.fi (Juha Nurmela) Newsgroups: comp.lang.c Subject: Re: Reading a keystroke w/o echo Message-ID: <1991May23.184302.13918@lut.fi> Date: 23 May 91 18:43:02 GMT References: <990007@hpcc01.HP.COM> Sender: Juha Nurmela Organization: Lappeenranta University of Technology, Finland Lines: 22 Randy Azarian writes: >I need to accept a user password (that won't echo to the screen). So what I >am looking for is an ANSI-C routine that will accept a keystroke without >echoing it to the screen. > >Does anyone know of such a function or a way to fool stdin/stdout to >accomplish the same thing? Simple solution... Portable ? puts("Please dim Your monitor with knob called brightness."); puts("Then key Your passwd terminating with ENTER and readjust the knob"); gets(password); puts("\n\n\n\n ...50 times ... \n"); juha nurmela -- juha nurmela, Adr. 54430 Hujakkala, Finland. Tel. 953 78022 eiku: skinnarilank. 28d10, Tel. 953 26292