Message-ID: <3A5AEFF6.C2432EBE@student.uni-ulm.de> Date: Tue, 09 Jan 2001 12:03:18 +0100 From: Karsten Schmidt Organization: =?iso-8859-1?Q?Universit=E4t?= Ulm X-Mailer: Mozilla 4.75 [de] (Win98; U) X-Accept-Language: de MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: Problem with kbhit() References: <3A5AE4E7 DOT 85120936 AT student DOT uni-ulm DOT de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: pcks.e-technik.uni-ulm.de X-Trace: 9 Jan 2001 12:03:03 +0100, pcks.e-technik.uni-ulm.de Lines: 19 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I guess I found a solution: I have to poll the character with getch() > int main (void) > { while(!kbhit()) // Wait until key pressed > { printf("."); > delay(1000); } getch() <-------- read keyboard > printf("\n"); > while (kbhit()) // Wait until key released > { printf("+"); > delay(1000);} > exit(0); > } -- Karsten