[comp.windows.x] Events

hwa@ece-csc.UUCP (George Hwa) (04/26/89)

	I am working on adding a graphics interface to a text based simulation
program.  Right now I have a interactive plotting package to take plot the 
outputs from the simulations.  The problem I have run into is how to go back
and forth between the graphics and the text.  The simulator already has its
own input handling, not in X of course, and I really don't want to have to mess
with any of it.  What I had tried was having a menu option that would break out
of the event loop and return to the calling procedure, the simulator, allowing
the simulator to process more input from the user.  The problem with this 
approach is that events have to wait to be processed until the user reenters 
the graphics mode by starting another event loop.  This is a rather tedious way
of doing things.
	I was wondering if there was anyway to have the event loop continously
executing.  If there was someway to have it run in the background and only be
exited when the program is exited.  This would allow all events to be processed
as they occur.
	My graphics routines are written using the X Toolkit and the Athena 
widgets.  Any help would be greatly appreciated.

	Thanks in advance

		Russ Cook
		NC State University
		hwa@ece-csc.ncsu.edu