delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/06/12:37:49

Message-ID: <38EC805F.A4614898@student.fontys.nl>
Date: Thu, 06 Apr 2000 14:17:35 +0200
From: Bart Verbakel <B DOT Verbakel-ab AT student DOT fontys DOT nl>
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: getch() with DJGPP in Win DOSbox
NNTP-Posting-Host: 145.85.143.60
X-Trace: 6 Apr 2000 14:24:11 +0100, 145.85.143.60
Lines: 14
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I am trying to create a loop like this:

while ( getch() != 'q' )
  printf("Neverending textstring");

This is SUPPOSED to put the string to stdout,
until I touch the 'q' key.

But, compiling this with DJGPP and running it in an DOS-box
under Win98, It does not!!
After each 'printf' it waits for me to press "RETURN"

How do I solve this problem ???

- Raw text -


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