all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "KARR, DAVID (ATTSI)" <dk068x@att.com>
To: "Paul Bibbings" <paul.bibbings@gmail.com>, <help-gnu-emacs@gnu.org>
Subject: RE: GNU Emacs 23.1 and Cygwin bash shell - cleaning up display
Date: Mon, 1 Mar 2010 09:35:58 -0800	[thread overview]
Message-ID: <E0529A8FFC2C9143A5F1BB9A89101D060879FE16@BD01MSXMB018.US.Cingular.Net> (raw)
In-Reply-To: <87zl2tmaqm.fsf@gmail.com>

> -----Original Message-----
> From: help-gnu-emacs-bounces+dk068x=att.com@gnu.org [mailto:help-gnu-
> emacs-bounces+dk068x=att.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
> 
> 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!

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='[\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	other threads:[~2010-03-01 17:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-28 15:54 GNU Emacs 23.1 and Cygwin bash shell - cleaning up display Paul Bibbings
2010-02-28 17:39 ` Pascal J. Bourguignon
2010-02-28 19:16   ` Paul Bibbings
2010-03-01 17:35     ` KARR, DAVID (ATTSI) [this message]
2010-03-04 15:22       ` J. David Boyd

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E0529A8FFC2C9143A5F1BB9A89101D060879FE16@BD01MSXMB018.US.Cingular.Net \
    --to=dk068x@att.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=paul.bibbings@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.