delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/05/12/07:32:10

Date: Fri, 12 May 1995 12:01:56 +0200
To: gilliard AT lectra DOT fr (Laurent Pierre Gilliard)
From: tony AT nt DOT tuwien DOT ac DOT at (Anton Helm)
Subject: Re: keyboard buffer
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

>How can i empty the keyboard buffer with gcc?
>
>Thanks.


#include <pc.h>

while(kbhit())
  getkey();


/* unfortunately this is not very portable... */



Tony



***************************************************************************
Dipl.-Ing. Anton HELM            *    Private:                            *
Institut fuer Nachrichtentechnik *                                        *
und Hochfrequenztechnik          *    Anton HELM                          *
Guszhausstr. 25/389              *    Gratian-Marx Str. 7/27              *
A-1040 Wien                      *    A-1110 Wien                         *
AUSTRIA                          *    AUSTRIA                             *
                                 ******************************************
PHONE : +43-1-58801-3520         OOOOOOO O    O     O     O O OOOOO OO    O
FAX   : +43-1-5870583               O    O    O     O     O O O     O O   O
email: Anton DOT Helm AT nt DOT tuwien DOT ac DOT at   O    O    O OOO O  O  O O OOO   O  O  O
       tony AT nt DOT tuwien DOT ac DOT at         O    O    O     O  O  O O O     O   O O
**********************************  O     OOOO       OO OO  O OOOOO O    OO

- Raw text -


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