delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/07/12/01:22:41

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Tue, 11 Jul 2000 22:54:25 -0600
Message-Id: <200007120454.WAA10366@grey.colorado.edu>
X-Authentication-Warning: grey.colorado.edu: oreilly set sender to oreilly AT grey DOT colorado DOT edu using -f
From: "Randall C. O'Reilly" <oreilly AT grey DOT colorado DOT edu>
To: cygwin AT sources DOT redhat DOT com
Subject: gui+console events: select for GetMessage?
Reply-to: oreilly AT psych DOT colorado DOT edu

Does anyone know if there is a way to use select() to wait for Win32
GUI events that are read by GetMessage, while also waiting for stdin
activity?  I have an application that in unix uses select() on the fd
for the X display, so you can either use the console (xterm) interface
or the X interface, at the same time.  I would like to use something
like this same trick in windows, but haven't figured anything out yet.

I would like to avoid having to rewrite everything for a graphical
console window (which would operate under the GetMessage event loop),
unless of course there is something already written that is very easy
to create and it basically acts just like the regular console window,
including supporting readline (which I use).  It looked like the gdb
in cygwin has something like that, so if anyone knows about how that
works, I'd appreciate any pointers (I know, use the source..)  Thanks,

				- Randy

+----------------------------------------------------------------+
| Dr. Randall C. O'Reilly   |                                    |
| Assistant Professor       | Phone: (303) 492-0054              |
| Department of Psychology  | Fax:   (303) 492-2967              |
| Univ. of Colorado Boulder | Home:  (303) 448-1810              |
| Muenzinger D251C          | Cell:  (720) 839-7751              |
| Campus Box 345            | email: oreilly AT psych DOT colorado DOT edu  |
| Boulder, CO 80309-0345    | www:   psych.colorado.edu/~oreilly |
+----------------------------------------------------------------+

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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