python shell silently ignores termios.tcsetattr()
ldo at geek-central.gen.new_zealand
Fri Oct 22 09:43:20 CEST 2010
In message <i9q2go$5e$1 at reader1.panix.com>, kj <no.email at please.post> wrote:
> What's wrong with it is that what python thinks is a "reasonable
> state" is actually wrong in this case (it differs from the default
> setting established by the Emacs shell).
I personally wouldn’t try to run one program that wants to do its
own interactive terminal control from within another such program;
that’s just asking for trouble.
I wrote an Emacs function called make-command-buffer (available
as part of <http://github.com/ldo/emacs-prefs>) which feeds a selected
part of the buffer’s contents to a predefined command (which can be
an interpreter like python, bash, perl, bc or whatever you want), and
inserts any returned output into the same buffer. That way you keep all
the necessary editing and history management within Emacs.
More information about the Python-list