[comp.windows.x] porting of existing command-driven programs to X11

sla@helios (Steve Allen) (12/06/88)

Are there any good references on porting of existing, command-driven
programs to X ?  We have a number of programs that produce graphical
output with which the user wants to interact.  Presently these programs
are command driven by the user.  This is quite different than the
event-oriented approach which X uses.

More specifically, we desire to be able to display an image and have a
running readout of data on that image as the mouse moves over it.  At the
same time, the program should still be involved in command interaction with
the user.  SunView provides for this by allowing the program to declare an
asynchronous routine which is called to handle mouse events, while the main
thread of the program continues unaware.

I can see how this could be accomplished in X by making an image-display
child process which would do all the X11 processing.  But this would
require either keeping separate copies of a potentially large image
in memory, or using a system-dependent means of sharing memory between
the parent and child processes.

Does one of the toolkits address this issue?  Has anybody else ported large
existing command-driven programs to X?  Please reply by e-mail.

Steve Allen
sla@helios.ucsc.edu
sla@ucscloa.bitnet
...!ucbvax!ucscc!helios!sla

fuzzy%aruba.dnet@WPAFB-AVLAB.ARPA (john s karabaic) (12/07/88)

 
Steve Allen writes:
 
   Are there any good references on porting of existing, command-driven
   programs to X ?  We have a number of programs that produce graphical
   output with which the user wants to interact.  Presently these programs
   are command driven by the user.  This is quite different than the
   event-oriented approach which X uses.
 
 
We'd be interested in any responses to this also.  Could you either broadcast
them or direct them my way?
 
 
  ===========================  ==============================================  
||Lt John S. Karabaic        || arpanet:                                     ||
  ---------------------------   fuzzy%aruba.dnet@wpafb-avlab.arpa            ||
||Paper mail:                  ------------- --------------------------------  
||Bldg 22, Room S-108        || phones:     |"A large and liberal discontent:||
||AFWAL/TXI                  || 513 255 5800|These are the goods in life's   ||
||ASD AI Applications Office || 513 255 5537|   rich hand,/The things that   ||
||WPAFB, OH 45433-6543       || AV 785 5800 |are more excellent." Wm. Watson ||
  ===========================  ============= ================================  

mongo@helios (Mongo Package) (12/09/88)

Well, it looks like noone has actually managed to port a large, clunky,
old, 15 man-years worth of effort, comand-driven program to X11.

Someone did hint that the DECwindows toolkit contains a XSelectAsyncInput
call which allows the registration of an asynchronous call to be done
in response to X events.  Is there such a thing?  If so, will it only
be available from DEC, or will it become a part of a future (R4?)
distribution?  

Steve Allen
sla@helios.ucsc.edu
sla@ucscloa.bitnet
...!ucbvax!ucscc!helios!sla