[comp.windows.x] Sending "keyboard like" data to an xterm window

caf@cbnews.ATT.COM (Christopher A. Fitzgerald) (04/10/90)

I'm trying to build an application (on a sun workstation) which 
essentially will perform two functions.  The first is to select
a window (lets say an xterm) as the one which my application will
talk to.  My initial thought was to use the mechanism in xwd for
selecting a window to dump.  My second function will be to send
text to that selected window.  What I'm trying to do here is build
a text string and send it to a window as thought the keyboard had
been used.  Any help with either or both of my needs would be appreciated.