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: Paul Bibbings
Subject: Re: GNU Emacs 23.1 and Cygwin bash shell - cleaning up display
Date: Sun, 28 Feb 2010 19:16:49 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (windows-nt)

pjb@inf...com (Pascal J. Bourguignon) writes:
> 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

This is great, Pascal.  Thanks for this.  I have managed to get rid of
the noise and, also, it triggered me to discover that, having recently
moved my HOME directory, I had actually omitted to move over my
.bashrc.  Having done so, and made a few modifications, I'm good now!

Regards

Paul Bibbings



reply via email to

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