[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shell prompt messed up

From: J
Subject: Re: Shell prompt messed up
Date: Sun, 6 Feb 2011 20:17:31 +0000 (UTC)
User-agent: tin/1.9.6-20100522 ("Lochruan") (UNIX) (Linux/2.6.32-5-686 (i686))

Have you tried this:

by default, Emacs Shell will just print out those ASCII control

The omniscient Google pointed out that Emacs can be told to interpret
those control codes instead of just printing them out.

Two ways to do it:
  * Within Emacs Shell, M-x ansi-color-for-comint-mode-on, or
  * Append (add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
   to ${HOMEDIR}/.emacs.


Michael Kirsch <address@hidden> wrote:
> [-- text/plain, encoding 7bit, charset: ISO-8859-1, 18 lines --]
> The prompt in the shell (the one that comes up when I enter M-x shell) isn't
> right.
> My normal prompt looks like this, and is colored bright green using ANSI
> escape codes:
> username:directory$
> But the prompt looks like this in Emacs:
> ^[]0;address@hidden:/full/path/to/directory^Gusername:directory$
> The part after the ^G looks like my normal prompt, and still has the bright
> green color. The ^[ and ^G are highlighted, so I guess they are
> non-printable chars. The part between the ^[ and ^G is dark blue.
> How do I fix it?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]