Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!apple!sun-barr!newstop!sun!kimba!hvr From: hvr@kimba.Sun.COM (Heather Rose) Newsgroups: comp.windows.x Subject: Re: --- fundamental Xlib problem --- Message-ID: <131910@sun.Eng.Sun.COM> Date: 16 Feb 90 00:22:41 GMT References: <2312@uwm.edu> <1250003@hpfcdan.HP.COM> Sender: news@sun.Eng.Sun.COM Reply-To: hvr@sun.UUCP (Heather Rose) Organization: Sun Microsystems, Mountain View Lines: 19 In article rowe@cme.nist.gov (Walter Rowe) writes: >Here is another possible solution for processing until some event has >occurred (ie. until the `S' key has been pressed): If you want to use a toolkit, XView supplies a function called notify_do_dispatch which will process window events while waiting for input on a file descriptor (like a user typing 'S' to stdin). I already posted code about this subject to this list, so I will not clutter it again with a repeat. See the on line XView examples for an example. If you don't want to use the XView UI, it is still possible to use the XView notifier as an input distribution mechanism. Caveat: notify_do_dispatch requires that your OS has syscall() since it replaces the default select() and read() system calls with its own version. Heather