From: "Jason" Newsgroups: comp.os.msdos.djgpp Subject: Re: Help, my getch() and getchar() functions don't work properly!!! Date: Wed, 7 Oct 1998 12:10:31 +0800 Organization: Telstra Internet Lines: 22 Message-ID: <6verae$2gd$1@wapull.telstra.net> References: <360E6FE5 DOT 51F931FB AT iafrica DOT com> <360FFB5F DOT 5A3AC226 AT cartsys DOT com> NNTP-Posting-Host: 203.38.54.164 X-Newsreader: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com You might want to try a \n at the end of the text your trying to print before you look for the keypress Nate Eldredge wrote in message <360FFB5F DOT 5A3AC226 AT cartsys DOT com>... >The Jorgensen Family wrote: >> >> Help!!!!! >> >> I've been doing a tutorial on C and I have gotten to this bit where you >> learn how to use the getch() and getchar() functions. The problem is >> that they don't work as they should. I even tried using my TurboC++ >> compiler. It works on that. But when I compile with gcc the program does >> not print out any chars until a key that is being watched for is >> pressed. Then it prints all of they keys pressed. What is going on??? > >Read FAQ section 9.4; you don't give quite enough details but I suspect >it is relevant. >-- > >Nate Eldredge >nate AT cartsys DOT com