14

It is a usual shell display:

ME@mycomputer: ~$ echo

When I do backspace several times It becomes:

ME@mycompu

How to prevent the system word from deleting

  • 1
    Not an answer, but eshell doesn't have this problem. – JeanPierre Apr 21 '16 at 12:34
15

I think you're looking for comint-prompt-read-only. E.g.

(setq comint-prompt-read-only t)

should take care of it.

  • I don't know if this is a different question, but is it possible to prevent comint from deleting previous output? At the moment I could just move up with my cursor and delete stuff. – itmuckel Jul 12 at 7:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.