From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: On prompt in shell mode Date: Tue, 12 Aug 2008 14:19:34 -0400 Message-ID: <87sktaw0y1.fsf@stupidchicken.com> References: <48A198B6.4080206@alice.it> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1218565215 4064 80.91.229.12 (12 Aug 2008 18:20:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Aug 2008 18:20:15 +0000 (UTC) Cc: emacs-devel@gnu.org To: Angelo Graziosi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 12 20:21:06 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KSyUU-00071w-7C for ged-emacs-devel@m.gmane.org; Tue, 12 Aug 2008 20:21:06 +0200 Original-Received: from localhost ([127.0.0.1]:36297 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSyTX-0005ik-Rq for ged-emacs-devel@m.gmane.org; Tue, 12 Aug 2008 14:20:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KSySY-0004pv-UE for emacs-devel@gnu.org; Tue, 12 Aug 2008 14:19:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KSySX-0004nY-2K for emacs-devel@gnu.org; Tue, 12 Aug 2008 14:19:06 -0400 Original-Received: from [199.232.76.173] (port=57992 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSySW-0004nM-R2 for emacs-devel@gnu.org; Tue, 12 Aug 2008 14:19:04 -0400 Original-Received: from cyd.mit.edu ([18.115.2.24]:58678 helo=cyd) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KSySW-0006SY-Ke for emacs-devel@gnu.org; Tue, 12 Aug 2008 14:19:04 -0400 Original-Received: by cyd (Postfix, from userid 1000) id 9C12857E2EC; Tue, 12 Aug 2008 14:19:34 -0400 (EDT) In-Reply-To: <48A198B6.4080206@alice.it> (Angelo Graziosi's message of "Tue, 12 Aug 2008 16:05:42 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:102355 Archived-At: Angelo Graziosi writes: > 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. I'm unable to reproduce this; ansi-color-for-comint-mode-on works for me with that exact prompt.