delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/26/18:30:47

From: SPAMGUARDriker AT pipcom DOT com (Matt Riker)
Newsgroups: comp.os.msdos.djgpp
Subject: readkey() problem
Date: Mon, 26 Jan 1998 18:05:21 -0500
Organization: Riker Software
Lines: 22
Message-ID: <MPG.f36e0bf8faddf6a9896b4@news>
Reply-To: SPAMGUARDriker AT pipcom DOT com
NNTP-Posting-Host: 207.61.241.242
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Whenever I use readkey() in place of where getch() would normally be, 
the line that is supposed to be displayed first (ie. "Press any key...") 
doesn't display until a key is pressed.  Here is an example:

{
   allegro_init();
   install_keyboard();

   printf("Hey there!\n");
   printf("Press any key...");
   readkey();
   return 0;
}

"Hey there!" gets displayed, but "Press any key..." isn't displayed 
until a key is pressed.  Can anyone help?  Thanks.
	
____________________________
Matt Riker
SPAMGUARDriker AT pipcom DOT com
*** Remove SPAMGUARD ***
***  when replying!  ***

- Raw text -


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