🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #36906

Re: --- fundamental Xlib problem ---

#36906
From: Heather Rose
Date: Fri, 16 Feb 1990 00:22
19 lines
1412 bytes
In article <ROWE.90Feb13093044@norman.cme.nist.gov> 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
Technical Details
Message-ID: <131910@sun.Eng.Sun.COM>
Path: arc1-ca.pugleaf.net!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
References: <2312@uwm.edu> <1250003@hpfcdan.HP.COM> <ROWE.90Feb13093044@norman.cme.nist.gov>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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> <ROWE.90Feb13093044@norman.cme.nist.gov>
Sender: news@sun.Eng.Sun.COM
Reply-To: hvr@sun.UUCP (Heather Rose)
Organization: Sun Microsystems, Mountain View
Lines: 19