I wanted to make an application using ghost script(gs), for that I called execlp ("gs", "gs", NULL); from a child process. I need to input the end points from the parent process and feed it to child process using pipe and dup system calls to draw the line, and it will be using a user defined infinite loop yes and no. after executing this statement I come to gs prompt, how Can I input the next point then? Isn't it possible to see the gs window only and have my $ prompt without any change and then input it there.
One more think how can I send the next point set to the same application to draw it again? I am actually unable to figure it out, just am in need of initial high level or technical idea if I made myself clear.