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: Lute Kamstra
Subject: Re: Problems with ANSI colors in shell mode in Emacs 21.2.95.
Date: 11 Feb 2003 13:30:53 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Andreas Schwab <address@hidden> writes:

[...]

> |> I'm not sure what Andreas Schwab's idea behind this change was.
> 
> This change is needed to get control characters passed properly to bash.
> Otherwise they are intercepted by readline, which is not what we want.
> 
> |> then the ^A and ^B characters don't appear anymore and things work
> |> fine again as they did in Emacs 21.2.90.
> 
> Do you have a custom $PS1?  

I do.

> Does it contains empty \[\] sequences?  Then this is a bug in bash.

It does have \[\] sequences.  They contain ANSI escape sequences to
set the color.  Do you consider this empty?

To be precise, my bash prompt is defined by:

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\]
 "

to give a colored prompt that looks like this:

[bash-2.04|occarina|lisp]> 


Lute.

-- 
Lute Kamstra  <address@hidden>
CWI  department PNA4
Room M233  phone (+31) 20 592 4214
[Echelon material: Elvis Cocaine NORAD]




reply via email to

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