emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: Problems with ANSI colors in shell mode in Emacs 21.2.95.


From: Francesco Potorti`
Subject: Re: Problems with ANSI colors in shell mode in Emacs 21.2.95.
Date: Mon, 10 Feb 2003 15:52:27 +0100

>I've defined a prompt for bash like this.
>
>,----[ .bashrc ]
>|     
>PS1="\[\033[1;34m\][\[\033[1;31m\]\s-\v\[\033[1;34m\]|\[\033[1;31m\]\h\[\033[1;34m\]|\[\033[1;31m\]\W\[\033[1;34m\]]>\[\033[0m\]
> "
>`----

I do not know why you put all those \[ and \] in there.  I tried to
remove all of them and I got a working prompt, like this:

PS1="\033[1;34m[\033[1;31m\s-\v\033[1;34m|\033[1;31m\h\033[1;34m|\033[1;31m\W\033[1;34m]>\033[0m
 "


Can you confirm this?




reply via email to

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