|
From: | Peter Dyballa |
Subject: | Re: weird emacs shell behavior |
Date: | Fri, 17 Aug 2007 19:43:55 +0200 |
Am 17.08.2007 um 18:54 schrieb phundamental unaudio:
when i issue alt-x shell the prompt looks weird like this: [32;1mvytas@clt-84-32-234-17:~>[0mwith those unnesecery characters in the beginning and the end. im using22.1.1 could anyone tell me what the problem could be?
Your bash prompt is creating ANSI Esc sequences to set colours or effects.
In GNU Emacs 22 you can invoke ansi-color-for-comint-mode-onto make *shell* buffer interpret certain ANSI Esc sequences (you can also put it into an init file). You can use a file ~/.emacs_<shell interpreter's name> to adjust some settings for *shell* buffer. You would need to use that shell interpreter's syntax. For example, if your login shell is bash and you put
PS1="$ "into ~/.emacs_bash than you'll have a much shorter and monochrome prompt ...
-- Greetings Pete Increase the size of your bike by at least *five* inches!
[Prev in Thread] | Current Thread | [Next in Thread] |