Mail Archives: cygwin/1998/03/12/23:21:00
> -----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 -