Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have the exact same Emacs configuration on a local and remote machine, and when I run M-x ansi-term or M-x term on each of them individually everything works great.

However, if I run any of these term emulators on Emacs on the local machine, and then I ssh into the remote machine, the prompt is not displayed correctly and my input doesn't work well either.

Any ideas what may be causing this?

share|improve this question
Do you have the same Emacs versions? Same distributions? Same locale settings (locale -a)? What do you mean by “not display correctly” and “doesn't work well”: describe precisely what you see and how it differs. – Gilles Nov 26 '11 at 0:16

The value of the TERM environment variable should be the same on both systems.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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