This is admittedly a superficial question.
Although ansi-term starts out behaving correctly when I first open it, it seems to degrade into an 'editable' mode after a few commands, e.g., when I do C-a (start of line) followed by C-k (kill line), it wipes out the whole prompt.
For my aesthetic sanity, is there any way to make the prompts and previous output uneditable (for shell)? (Updated to exclude ansi-term given the meaningful differences.)
I'm using zsh in Emacs 24.4; OS is LXDE (Ubuntu 14.04) via Virtual Box.
(Ideally I'd still be able to move my cursor around...)
C-c C-j. Try finding out that default or switch to char mode withC-c C-k. – wasamasa Oct 31 '14 at 09:39shell-mode/term-moderespectively do / do not derive fromcomint-mode, you're asking two very different questions at the same time here. Mind splitting this into two separate questions? – purple_arrows Oct 31 '14 at 12:50