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: Tue, 11 Feb 2003 13:20:11 +0100

>Do you have a custom $PS1?  Does it contains empty \[\] sequences?  Then
>this is a bug in bash.

They are not empty.  You can reproduce this by doing:

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

in a shell buffer and then
M-x ansi-color-for-comint-mode-on RET

If this is a bug in bash, should we work around it as the Linux console
and other terminal emulators do by discarding non printable characters
in shell mode?




reply via email to

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