Date: Sun, 24 Nov 1996 12:10:42 +0200 (IST) From: Eli Zaretskii To: mfepsdp AT afs DOT mcc DOT ac DOT uk Cc: djgpp AT delorie DOT com Subject: Re: Simple Getch problem In-Reply-To: <5783b1$gbk@yama.mcc.ac.uk> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 24 Nov 1996, Mr David Potts wrote: > int main(void) > { > printf("Before getch"); > getch(); > > > return(0); > } > > > But when I ran it, it waited for a key press *then* printed > the text rather than the other way round. What is going on? Download the DJGPP FAQ list (v2/faq202b.zip) and read section 9.4 there. It explains why this happens and how to solve this.