www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/13/21:04:52

Date: Tue, 13 Jan 1998 18:01:23 -0800 (PST)
Message-Id: <199801140201.SAA28643@adit.ap.net>
Mime-Version: 1.0
To: Bjoern DOT Appel AT frankfurt DOT netsurf DOT de (Bjoern Appel), djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: char getch(void)

At 10:14  1/13/1998 GMT, Bjoern Appel wrote:
>Hi,
>I've this little program:
>
>//start of little program **********
>#include<stdio.h>
>#include<conio.h>
>
>int main(void)
>{
>  clrscr()
>  printf("Please wait...");
>  getch();
>  return 0;
>}
>//end of little program **********
>
>Now the problem:
>The program shows a blank screen and will print the "Pleas wait..."
>AFTER I pushed a button, not BEFORE !!!
>
>What could I do ?

You could read FAQ section 9.4. It explains that stdio is buffered in DJGPP,
and what you can do about it.

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


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