I am writing an emacs mode that interfaces with a shell process. The shell process is expensive to start which means that I would like to do it once and then send commands to it from emacs as need be. How is it possible to do this asyncronous two way communication with an external program through emacs.
From what I understand comint mode is close to what I need but it seems like that is only to be used for a major mode where the user supplies the input like interfacing with the python shell.
I would like the actual process and shell to be hidden from the end user.
Is there a reasonably easy way to do this? Or some resources on the subject>
Thank you all