From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: On prompt in shell mode Date: Tue, 12 Aug 2008 16:05:42 +0200 Message-ID: <48A198B6.4080206@alice.it> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1218550063 11709 80.91.229.12 (12 Aug 2008 14:07:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Aug 2008 14:07:43 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 12 16:08:34 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 1KSuWq-0006fs-Ut for ged-emacs-devel@m.gmane.org; Tue, 12 Aug 2008 16:07:17 +0200 Original-Received: from localhost ([127.0.0.1]:47304 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSuVu-0001jh-Si for ged-emacs-devel@m.gmane.org; Tue, 12 Aug 2008 10:06:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KSuVq-0001hc-Mc for emacs-devel@gnu.org; Tue, 12 Aug 2008 10:06:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KSuVm-0001Yz-I4 for emacs-devel@gnu.org; Tue, 12 Aug 2008 10:06:14 -0400 Original-Received: from [199.232.76.173] (port=53603 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSuVm-0001Yi-Dm for emacs-devel@gnu.org; Tue, 12 Aug 2008 10:06:10 -0400 Original-Received: from smtp-out114.alice.it ([85.37.17.114]:4279) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KSuVm-0002Ef-21 for emacs-devel@gnu.org; Tue, 12 Aug 2008 10:06:10 -0400 Original-Received: from FBCMMO01.fbc.local ([192.168.68.195]) by smtp-out114.alice.it with Microsoft SMTPSVC(6.0.3790.1830); Tue, 12 Aug 2008 16:06:08 +0200 Original-Received: from FBCMCL01B06.fbc.local ([192.168.69.87]) by FBCMMO01.fbc.local with Microsoft SMTPSVC(6.0.3790.1830); Tue, 12 Aug 2008 16:06:07 +0200 Original-Received: from [87.7.239.208] ([87.7.239.208]) by FBCMCL01B06.fbc.local with Microsoft SMTPSVC(6.0.3790.1830); Tue, 12 Aug 2008 16:06:06 +0200 User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) X-OriginalArrivalTime: 12 Aug 2008 14:06:06.0931 (UTC) FILETIME=[9071AA30:01C8FC84] X-detected-kernel: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ 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:102333 Archived-At: 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. Thanks, Angelo. --- [1] http://lists.gnu.org/archive/html/help-gnu-emacs/2007-07/msg00796.html