I’m trying to write a clone of ghostscript and I can’t figure out how they make it so you can type into the graphics window, and the keystrokes show up in the terminal window as though you’d typed them there to begin with. So having received the KeyRelease Event, can I stuff the char into stdin somehow, to be read with normal filereading code? Or do I have to make my own internal buffer in front of stdin so I can hack new chars into it? Or is ther some simple way to map keyboard events from my application window to Xterm?
I’m willing to do the work, but I don’t even know what I’m looking for here. Help?!!
Eureka!
in the file gdevxini.c
Edit: Now that I know what it looks like, I was able to find some documentation: