From: adg@crans.org
To: Angelo Graziosi <angelo.graziosi@alice.it>
Cc: emacs-devel@gnu.org
Subject: Re: On prompt in shell mode
Date: Tue, 12 Aug 2008 15:10:40 +0100 [thread overview]
Message-ID: <877iamqq73.fsf@dyn-195-135.cs.st-andrews.ac.uk> (raw)
In-Reply-To: <48A198B6.4080206@alice.it> (Angelo Graziosi's message of "Tue\, 12 Aug 2008 16\:05\:42 +0200")
Le 12 Aug 2008 vers 15:05, Angelo Graziosi <angelo.graziosi@alice.it> a tapoté :
> The following regards Emacs (trunk) both on Linux and Cygwin.
>
> When I do: M-x shell, the prompt has garbage:
>
> ^[]0;~/downloads/cygwinports^G
> ^[[32mangelo@host ^[[33m~/downloads/cygwinports^[[0m
> $
>
> being
>
> echo PS1
> \[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$
>
> I have found [1], for which 'ansi-color-for-comint-mode-on' should fix
> the thing. I have also tried defining PS1='PROMPT>' or PS1='\n\u@\h
> \w\n$ ' in .emacs_bash, but in all cases there is still garbage after
> M-x shell.
>
> So I would ask if you have a better solutions.
>
Maybe you need to unset PROMPT_COMMAND ?
--
Antoine DG
next prev parent reply other threads:[~2008-08-12 14:10 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-12 14:05 On prompt in shell mode Angelo Graziosi
2008-08-12 14:10 ` adg [this message]
2008-08-12 14:17 ` Angelo Graziosi
2008-08-12 18:19 ` Chong Yidong
2008-08-13 10:03 ` Angelo Graziosi
2008-08-12 19:46 ` Stefan Monnier
2008-08-12 20:49 ` Angelo Graziosi
2008-08-13 20:42 ` Stefan Monnier
2008-08-13 21:55 ` Angelo Graziosi
2008-08-13 22:37 ` Stefan Monnier
2008-08-13 23:02 ` Angelo Graziosi
2008-08-13 23:17 ` David Hansen
2008-08-13 23:55 ` Stefan Monnier
2008-08-14 1:24 ` Angelo Graziosi
2008-08-14 8:50 ` Angelo Graziosi
2008-08-14 10:22 ` David Hansen
2008-08-14 13:21 ` Angelo Graziosi
2008-08-13 6:26 ` Richard M. Stallman
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877iamqq73.fsf@dyn-195-135.cs.st-andrews.ac.uk \
--to=adg@crans.org \
--cc=angelo.graziosi@alice.it \
--cc=emacs-devel@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).