delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/20/05:20:23

Date: Thu, 20 Nov 1997 12:19:42 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: djgpp AT delorie DOT com
Subject: Re: getch() problems please help
In-Reply-To: <879992901.96859@gigi.ans.com.au>
Message-ID: <Pine.SUN.3.91.971120121750.11842L-100000@is>
MIME-Version: 1.0

On Thu, 20 Nov 1997, Fred wrote:

> However the output shows that it has been taking in what you have been
> typing as the input[] array contains the 19 chars as it should.
> 
> Any ideas?

You are mixing buffered stdio output with direct console I/O.  Replace
the call to `printf' with a call to `cprintf' ("\n" should be replaced
with "\r\n", for this to work), and see if the problems go away.

This is explained in more detail in the DJGPP FAQ list (v2/faq210b.zip
from the same place you get DJGPP), section 9.4.

(Btw, IMHO it is quite rude to ask for help with a bogus address in your 
message headers.)

- Raw text -


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