2

In M-x term, I type ab, press backspace, then ab_ is visible (_ is space). Hitting enter tells no such command a, so the deletion has effect but the the terminal is not updated correctly. Likewise for home and end buttons.

I start Emacs from cygwin using dos prompt or mintty, same effect. What chould be wrong?

3
  • @Thomas it tells xterm for mintty, cygwin for dos prompt – ron Jan 6 '12 at 10:05
  • Hm, it says eterm-color for me on Ubuntu. Perhaps you could try export TERM=eterm-color (assuming bash) and see it that helps? – Thomas Jan 7 '12 at 5:09
  • same problem: mksh on pcbsd with TERM=xterm-256color (tried `xterm' too) – Łukasz Gruner Sep 3 '13 at 21:17
0

I have just had this exact problem, also in cygwin, rather than any proper Linux.

As suggested by the comments, the TERM seems the key. Mine was already eterm-color. Setting it to xterm fixed it for me.

export TERM=xterm

Obviously there are other values to try if xterm doesn't work for you.

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.