From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Bibbings Newsgroups: gmane.emacs.help Subject: Re: GNU Emacs 23.1 and Cygwin bash shell - cleaning up display Date: Sun, 28 Feb 2010 19:16:49 +0000 Organization: A noiseless patient Spider Message-ID: <87zl2tmaqm.fsf@gmail.com> References: <87k4txwe2q.fsf@gmail.com> <87bpf99s5e.fsf@galatea.lan.informatimago.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1267396711 29228 80.91.229.12 (28 Feb 2010 22:38:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 28 Feb 2010 22:38:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 28 23:38:27 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NlrmN-0004oq-3k for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Feb 2010 23:38:27 +0100 Original-Received: from localhost ([127.0.0.1]:44578 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NlrmM-0005w3-FQ for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Feb 2010 17:38:26 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!feeder.eternal-september.org!eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 43 Injection-Date: Sun, 28 Feb 2010 19:16:54 +0000 (UTC) Injection-Info: news.motzarella.org; posting-host="sxQz2bAqvoRS3N7JeKHRCQ"; logging-data="2279"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ZnChyk0dpTd7vkSbrZn5i75C0h2wsMQs=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (windows-nt) X-Antivirus-Status: Clean X-Antivirus: avast! (VPS 100228-0, 28/02/2010), Outbound message Cancel-Lock: sha1:tpkLF2whVrdnpYIFInEpJ4XTCsQ= sha1:uvoIbzKxv9IBOyRSIYAFFLl97rw= Original-Xref: news.stanford.edu gnu.emacs.help:177200 X-Mailman-Approved-At: Sun, 28 Feb 2010 17:30:42 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72250 Archived-At: pjb@inf...com (Pascal J. Bourguignon) writes: > Paul Bibbings 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