| delorie.com/archives/browse.cgi | search |
| Date: | Sun, 24 Nov 1996 12:10:42 +0200 (IST) |
| From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
| 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: | <Pine.SUN.3.91.961124120917.28870O-100000@is> |
| Mime-Version: | 1.0 |
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.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |