Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Wed, 12 Jul 2000 13:53:31 -0600
Message-Id: <200007121953.NAA12757@grey.colorado.edu>
X-Authentication-Warning: grey.colorado.edu: oreilly set sender to oreilly@grey.colorado.edu using -f
From: "Randall C. O'Reilly" <oreilly@grey.colorado.edu>
To: cygwin@sources.redhat.com
In-reply-to: <200007120454.WAA10366@grey.colorado.edu>
	(oreilly@grey.colorado.edu)
Subject: Re: gui+console events: select for GetMessage?
Reply-to: oreilly@psych.colorado.edu
References:  <200007120454.WAA10366@grey.colorado.edu>

Ok, I answered my own question -- looks like you can get an 
fd =open("/dev/windows") and then use that for select.

"Randall C. O'Reilly" <oreilly@grey.colorado.edu> writes:
> 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

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

