From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "KARR, DAVID (ATTSI)" Newsgroups: gmane.emacs.help Subject: RE: GNU Emacs 23.1 and Cygwin bash shell - cleaning up display Date: Mon, 1 Mar 2010 09:35:58 -0800 Message-ID: References: <87k4txwe2q.fsf@gmail.com><87bpf99s5e.fsf@galatea.lan.informatimago.com> <87zl2tmaqm.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1267465845 12395 80.91.229.12 (1 Mar 2010 17:50:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 1 Mar 2010 17:50:45 +0000 (UTC) To: "Paul Bibbings" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 01 18:50:41 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 1Nm9lO-0005yH-S8 for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Mar 2010 18:50:39 +0100 Original-Received: from localhost ([127.0.0.1]:46714 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nm9lO-00062i-Ba for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Mar 2010 12:50:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nm9XT-0001ej-94 for help-gnu-emacs@gnu.org; Mon, 01 Mar 2010 12:36:15 -0500 Original-Received: from [140.186.70.92] (port=36944 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nm9XP-0001bP-7k for help-gnu-emacs@gnu.org; Mon, 01 Mar 2010 12:36:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nm9XK-00061d-Me for help-gnu-emacs@gnu.org; Mon, 01 Mar 2010 12:36:11 -0500 Original-Received: from mail167.messagelabs.com ([216.82.253.179]:20283) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nm9XK-000610-8e for help-gnu-emacs@gnu.org; Mon, 01 Mar 2010 12:36:06 -0500 X-VirusChecked: Checked X-Env-Sender: dk068x@att.com X-Msg-Ref: server-3.tower-167.messagelabs.com!1267464962!17534583!1 X-StarScan-Version: 6.2.4; banners=-,-,- X-Originating-IP: [144.160.112.25] Original-Received: (qmail 29616 invoked from network); 1 Mar 2010 17:36:02 -0000 Original-Received: from sbcsmtp3.sbc.com (HELO tlph064.enaf.dadc.sbc.com) (144.160.112.25) by server-3.tower-167.messagelabs.com with DHE-RSA-AES256-SHA encrypted SMTP; 1 Mar 2010 17:36:02 -0000 Original-Received: from enaf.dadc.sbc.com (localhost.localdomain [127.0.0.1]) by tlph064.enaf.dadc.sbc.com (8.14.3/8.14.3) with ESMTP id o21Ha01g002927; Mon, 1 Mar 2010 11:36:01 -0600 Original-Received: from td03xsmtp007.US.Cingular.Net (intexchapp01.us.cingular.net [135.179.64.45] (may be forged)) by tlph064.enaf.dadc.sbc.com (8.14.3/8.14.3) with ESMTP id o21HZrkv002721; Mon, 1 Mar 2010 11:35:53 -0600 Original-Received: from bd01xsmtp004.US.Cingular.Net ([135.163.18.45]) by td03xsmtp007.US.Cingular.Net with Microsoft SMTPSVC(6.0.3790.3959); Mon, 1 Mar 2010 11:35:53 -0600 Original-Received: from BD01MSXMB018.US.Cingular.Net ([135.214.27.52]) by bd01xsmtp004.US.Cingular.Net with Microsoft SMTPSVC(6.0.3790.3959); Mon, 1 Mar 2010 09:35:49 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message In-Reply-To: <87zl2tmaqm.fsf@gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: GNU Emacs 23.1 and Cygwin bash shell - cleaning up display Thread-Index: Acq4xviXoPVTJB6+S7+4XN4LTueXQAAno0wA X-OriginalArrivalTime: 01 Mar 2010 17:35:49.0000 (UTC) FILETIME=[A1BF8880:01CAB965] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 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:72274 Archived-At: > -----Original Message----- > From: help-gnu-emacs-bounces+dk068x=3Datt.com@gnu.org = [mailto:help-gnu- > emacs-bounces+dk068x=3Datt.com@gnu.org] On Behalf Of Paul Bibbings > Sent: Sunday, February 28, 2010 11:17 AM > To: help-gnu-emacs@gnu.org > Subject: Re: GNU Emacs 23.1 and Cygwin bash shell - cleaning up display >=20 > 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! You can create a $HOME/.emacs_bash file, which is used for alternative settings with Bash in Emacs. With this, you can set a different prompt in Emacs than outside of Emacs. > >> > >> 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=3D'[\u@\h $DISPLAY \W]$ ' > > > > in my ~/.bashrc >=20 > 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! >=20 > Regards >=20 > Paul Bibbings