> I think the protocol between python.el and inferior Python process is > already platform independent. Protocol violations are echo back. No, I meant a protocol that allows Emacs to act as a first-class Python front-end, not simulate a terminal, send keystrokes, use heuristics to determine what in the output stream is a prompt, REPL value, error, completion etc. For example, it's a bit silly to input multi-line code in the REPL as a sequence of individual single-line commands, when we actually are inside a text editor that can edit multi-line Python code without a problem. (I'm not suggesting that you or anybody in particular should do this; just that it's feasible. It would clearly be quite some work!) >> Thanks for your patches. I suggest we apply your set-tty-raw patch on master now since it cures the test failures without breaking anything else (on Mac; I'm assuming no regression elsewhere). >> >> Would you like me to do that for you? > > Yes, please. Done!