delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/03/12/23:21:00

From: Pascal DOT Obry AT der DOT edfgdf DOT 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
To: "mread AT ozemail DOT com DOT au" <mread AT ozemail DOT com DOT au> (Return requested) (Receipt notification requested),
"root AT jacob DOT remcomp DOT fr" <root AT jacob DOT remcomp DOT fr> (Return requested) (Receipt notification requested)
Cc: "gnu-win32 AT cygnus DOT com" <gnu-win32 AT cygnus DOT com> (Return requested)

> -----Message d'origine-----
> De:   mread AT ozemail DOT com DOT au 
> Date: mercredi 11 mars 1998 14:19
> À:    root AT jacob DOT remcomp DOT fr
> Cc:   gnu-win32 AT cygnus DOT 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 DOT obry AT der DOT edfgdf DOT 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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


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