Date: Tue, 5 May 1998 16:20:54 +0300 (IDT) From: Eli Zaretskii To: Ville Lundberg cc: djgpp AT delorie DOT com Subject: Re: Getch() in UNIX In-Reply-To: <354EE6B2.41C6@cc.hut.fi> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Tue, 5 May 1998, Ville Lundberg wrote: > I'm putting up a server and writing a program to it that asks for an > password. I first wrote the program at home with DJGPP to DOS, and > thought it would compile in UNIX. But it didn't, and I found out that it > was because UNIX hasn't GETCH() as DOS does. You shouldn't have used `getch' in DJGPP either. The canonical way of reading the password is by calling library function `getpass'. This function exists in DJGPP as well.