Subject: RE: how to do a timeout in getchar
From: [email-masked] (Pascal OBRY)

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: "[email-masked]" <[email-masked]> (Return requested) (Receipt notification requested),
        "[email-masked]" <[email-masked]> (Return requested) (Receipt notification requested)
Cc: "[email-masked]" <[email-masked]> (Return requested)

> -----Message d'origine-----
> De:   [email-masked] 
> Date: mercredi 11 mars 1998 14:19
> À:    [email-masked]
> Cc:   [email-masked]
> 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: [email-masked] |
--| 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
"[email-masked]" with one line of text: "help".