www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/05/10:56:50

Date: Tue, 5 May 1998 16:20:54 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Ville Lundberg <vlundber AT cc DOT hut DOT fi>
cc: djgpp AT delorie DOT com
Subject: Re: Getch() in UNIX
In-Reply-To: <354EE6B2.41C6@cc.hut.fi>
Message-ID: <Pine.SUN.3.91.980505161701.28653E-100000@is>
MIME-Version: 1.0

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019