From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: pjb@informatimago.com (Pascal J. Bourguignon) Newsgroups: gmane.emacs.help Subject: Re: GNU Emacs 23.1 and Cygwin bash shell - cleaning up display Date: Sun, 28 Feb 2010 18:39:09 +0100 Organization: Informatimago Message-ID: <87bpf99s5e.fsf@galatea.lan.informatimago.com> References: <87k4txwe2q.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1267378862 25375 80.91.229.12 (28 Feb 2010 17:41:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 28 Feb 2010 17:41:02 +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 18:40:50 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 1Nln8G-0006HZ-RP for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Feb 2010 18:40:45 +0100 Original-Received: from localhost ([127.0.0.1]:39397 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nln8G-0007Xh-37 for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Feb 2010 12:40:44 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Original-X-Trace: individual.net uMmpmZ84i5yzFJjTIc+RuQAC7cHWiSnanrvas6AsoltdznLKeD Cancel-Lock: sha1:NWZmODMwNzcwZjcwZDE0ZmYyOWEyZDIzNjQ5YWJhNDIzMWRmZjdiYw== sha1:jvW2NLLHowA3/eZmdx0QOxRif/k= Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en X-Disabled: X-No-Archive: no User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (darwin) Original-Xref: news.stanford.edu gnu.emacs.help:177197 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:72235 Archived-At: 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 -- __Pascal Bourguignon__