From: Pascal.Obry@der.edfgdf.fr (Pascal OBRY)
Subject: RE: how to do a timeout in getchar
12 Mar 1998 23:21:00 -0800
Message-ID: <0720D35079891006*/c=fr/admd=atlas/prmd=edfgdf/o=der/ou=der-ccmail/s=Obry/g=Pascal/.cygnus.gnu-win32@MHS>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
To: "mread@ozemail.com.au" <mread@ozemail.com.au> (Return requested) (Receipt notification requested),
        "root@jacob.remcomp.fr" <root@jacob.remcomp.fr> (Return requested) (Receipt notification requested)
Cc: "gnu-win32@cygnus.com" <gnu-win32@cygnus.com> (Return requested)


> -----Message d'origine-----
> De:   mread@ozemail.com.au 
> Date: mercredi 11 mars 1998 14:19
> À:    root@jacob.remcomp.fr
> Cc:   gnu-win32@cygnus.com
> Objet:        Re: how to do a timeout in getchar
> 
> Hi Jacob.
> 
> I've been looking for a way to set a flag if a key *isn't* present in the
> keybrd buffer, or set a flag *immediately* a SIGINT (eg. ctrl-c) occurs.
> However, I can't find a solution to either of these requirements.
> 
> getchar(): Will suspend my loop until a character is received in the kbd
> buffer. I want my loop to continue executing if *nothing* is in the kbd
> buffer!
> 
> _kbhit is ideal for this, but I can't see gnu-win32 supporting this. I
> searched my entire gnu dir tree, which covers *all* the include directories,
> and nothing found - no prototype.
> 

I have kbhit defined in libcygwin.a !

Pascal.

--|------------------------------------------------------------
--| Pascal Obry                               Team-Ada Member |
--|                                                           |
--| EDF-DER-IPN-SID- G A L A X I E                            |
--|                       Intranet: http://cln49ae            |
--| Bureau N-023            e-mail: pascal.obry@der.edfgdf.fr |
--| 1 Av Général de Gaulle  voice : +33-1-47.65.50.91         |
--| 92141 Clamart CEDEX     fax   : +33-1-47.65.50.07         |
--| FRANCE                                                    |
--|------------------------------------------------------------
--|
--|   http://ourworld.compuserve.com/homepages/pascal_obry
--|
--|   "The best way to travel is by means of imagination"
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
