Xref: utzoo comp.unix.programmer:817 comp.windows.x:31402 Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!think.com!spool2.mu.edu!uunet!tut.cis.ohio-state.edu!pt.cs.cmu.edu!o.gp.cs.cmu.edu!spot From: spot@CS.CMU.EDU (Scott Draves) Newsgroups: comp.unix.programmer,comp.windows.x Subject: Re: Asynchronous input from several sources: how? Message-ID: Date: 10 Jan 91 22:06:26 GMT References: <1487@gufalet.let.rug.nl> Sender: netnews@cs.cmu.edu (USENET News Group Software) Organization: School of Computer Science, Carnegie Mellon University Lines: 16 In-Reply-To: bert@let.rug.nl's message of 10 Jan 91 15:39:27 GMT In article <1487@gufalet.let.rug.nl> bert@let.rug.nl (Bert Bos) writes: I'm writing a program using X Windows that also needs to read input coming in over a pipe. The incoming data is displayed in a window, but while that happens, the program has to check for events (expose, button press, etc.) Get the file descriptor Xlib is using with ConnectionNumber, and then do a select on that and your pipe. If you are using Xt, then you should use XtAppAddInput(). -- IBM Scott Draves Intel spot@cs.cmu.edu Microsoft