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

wasamasa
  • 21,803
  • 1
  • 65
  • 97
tom
  • 365
  • 1
  • 7

1 Answers1

16

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

(setq comint-prompt-read-only t)

should take care of it.

Stefan
  • 26,154
  • 3
  • 46
  • 84
  • 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 '19 at 07:21