[comp.windows.x] Need a sample....

jonnyg@ROVER.UMD.EDU (Jon Greenblatt) (02/23/89)

	Can anyone give me some sample code to do the following.  I need to
have my X11 client sleep until I get input from either the terminal or an X
event.  I do not want the process to have to fork, it is a large process.  I
know you can do this through select, I was hoping someone had an example.
BTW I am using straight Xlib calls.

					JonnyG.

haynes@decwrl.dec.com (Charles Haynes) (02/25/89)

Do a select(2) on ConnectionNumber(dpy) of your display and the fd of the
terminal. If you were using the toolkit, you would register an alternate input
source, and not have to worry about this...

	-- Charles