rajohn@hubcap.clemson.edu (r alan johnson) (05/26/89)
I'm interested in porting an app in Fortran from the PC to a sun 3workstation. All of the graphics are very straight-forward, being only line draws, etc, but there seems to be a major point of contention. In X, to do the same sort of "non-event driven" sort of thing, I just placed an XPending after every output, so that the buffer is flushed, whether an event is pending or not. I can't seem to find an equivalent call in SunView. The only way I can generate any output is via the window_main_loop(frame) call, which then proceeds to block until something is done. In order that I might not have to completely rewrite the Fortran code to accomodate the event-driven nature, (BTW, I will need access to the mouse as well), does SunView provide such a beast that functions like XPending? If not, any suggestions? Thanks, R. Alan Johnson (rajohn@hubcap.clemson.edu)
chrise@bcsaic.UUCP (Chris Esposito) (05/30/89)
check out section 16.6 in the SunView programmers guide (`Porting programs to SunView'). This section describes how to get graphics output (among other things) without using a call to window_main_loop(). -- The Eskimos have 9 words for snow. In Seattle, we have 32 words for rain. Chris Esposito | CSNET: chrise@atc.boeing.com Boeing Advanced Technology Center | uucp: ...!uw-june!bcsaic!chrise