Date: Thu, 20 Nov 1997 12:19:42 +0200 (IST) From: Eli Zaretskii To: djgpp AT delorie DOT com Subject: Re: getch() problems please help In-Reply-To: <879992901.96859@gigi.ans.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.)