i have started a python process in eshell:
python app.py
i want to restart this with a elisp function, i think comint-quit-subjob
when executed with C-c C-\
kills the process but all my attempts to execute comint-quit-subjob
have failed
This is what i have so far:
(defun restart-app()
(with-current-buffer "*eshell*"
(interactive)
(comint-quit-subjob)
(eshell-return-to-prompt)
(insert "python app.py")
(eshell-send-input))
)
Hopefully it gives the jist of what i am trying, but it fails. Any ideas?