I am sending text to a REPL as if I had typed it in, like so:
(insert "source activate py3; hy")
How do I do the programmatic equivalent of pressing enter after inserting this string?
For a REPL, it was simple:
(comint-send-input)
comint-send-input
, you can use comint-send-string
instead of using insert
-- that way it gets done under-the-hood.
comint-sent-input
- but you should also explain what it does and why that is what we want.