Date: Tue, 7 Apr 1998 11:25:44 +0300 (IDT) From: Eli Zaretskii To: "Steven S. Falls" cc: djgpp AT delorie DOT com Subject: Re: Keybord Read Problem In-Reply-To: <35297B13.4E5CD995@earthlink.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Mon, 6 Apr 1998, Steven S. Falls wrote: > unsigned userinput; > if(kbhit()) userinput=getkey() //or getch() > > but the problem is that it does not get the first key you press. You > often get a delay or you have to press the key twice. This must be due to some bug in your code. As written, the above snippet should not miss any keypresses. Perhaps if you post a short program which can be compiled and run by other people, and describe the sequence of events whereby it loses keys, others could help you find and correct the problem(s).