delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/26/12:36:52

Date: Wed, 26 Apr 2000 21:36:15 +0500
Message-Id: <200004261636.VAA01167@envy.com>
From: Prashant TR <prashant_tr AT yahoo DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <8e6m1o$5ln$1@news.netvision.net.il> (roee2@netvision.net.il)
Subject: Re: programming interrupt 09H
References: <8e6m1o$5ln$1 AT news DOT netvision DOT net DOT il>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> compiler Borland C++ version 3.1

This is off-topic for the DJGPP newsgroup.

>    my question is for programming in c
> 
> when I'm programming int 09H ( keyboard interrupt ) after several =
> presses on the keyboard=20
> I'm filling the keyboard buffer.
> after that in every press I get the bip sound from the computer speaker.
> 
> how can I clean this buffer I've tried  fflush( stdin )  and it's not =
> working I'm still getting that bip.

That depends on what your program is doing. If your interrupt handler is
chained to the original hander, then this is normal. To get rid of that, use
getch to cleanup the keyboard buffer if it isn't empty.

PS: Please don't post in HTML.

- Raw text -


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