delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/08/08:54:15

Date: Mon, 8 Dec 1997 15:50:52 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Nate Eldredge <eldredge AT ap DOT net>
cc: fighteer AT cs DOT com, djgpp AT delorie DOT com
Subject: Re: keyboard problem!
In-Reply-To: <199712060457.UAA07823@adit.ap.net>
Message-ID: <Pine.SUN.3.91.971208155033.4200K-100000@is>
MIME-Version: 1.0

On Fri, 5 Dec 1997, Nate Eldredge wrote:

> Actually, he's right: the effect of that code is to read one character from
> DOS standard input. This may be a problem, since on other compilers (at
> least Turbo C) `getch' reads directly from the keyboard.

I have just checked, and in Borland 3.1, `getch' reads from stdin as
well.  Are you sure Turbo C is different?  (Try redirecting stdin and
see if `getch' reads a character or waits for keyboard input.)

- Raw text -


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