help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: GNU Emacs 23.1 and Cygwin bash shell - cleaning up display


From: Pascal J. Bourguignon
Subject: Re: GNU Emacs 23.1 and Cygwin bash shell - cleaning up display
Date: Sun, 28 Feb 2010 18:39:09 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (darwin)

Paul Bibbings <paul.bibbings@gmail.com> writes:

> the equivalent in Emacs renders (After `M-x my-bash' && pwd) as:
>
>    ^[]0;~^G
>    ^[[32mMe@MY ^[[33m~^[[0m
>    $ pwd
>    /home/Me
>    $[]0;~^G
>    ^[]0;32mMe@MY ^[[33m~^[[0m
>    $
>    
> ... and that is a LOT of noise!
>
> The encoding for *shell-bash* in this scenario shows as multi-byte
> iso-latin-1-dos with DOS-style CRLF.
>
> Any help in cleaning this up will be very much appreciated.

You may activate ansi-color.

    M-x ansi-color-for-comint-mode-on RET

(You may do that automatically in a hook).
However, this deals only with color escapes, not with positionning
escapes or others. 
To avoid these, you may change the prompt.
I use:

    export PS1='[\u@\h $DISPLAY \W]$ '

in my ~/.bashrc

-- 
__Pascal Bourguignon__


reply via email to

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