From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: chdir output incorrect for prompt Date: Wed, 26 Apr 2006 08:11:41 +1000 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <874q0h1f1e.fsf@tiger.rapttech.com.au> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1146004849 26590 80.91.229.2 (25 Apr 2006 22:40:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Apr 2006 22:40:49 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 26 00:40:48 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FYWD7-0002kN-Pq for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Apr 2006 00:40:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYWD7-0001dI-At for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Apr 2006 18:40:45 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!sn-xt-sjc-03!sn-xt-sjc-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:roBL4JpAHGlnybgXFn2rbRF1P4A= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 24 Original-Xref: shelby.stanford.edu gnu.emacs.help:139035 Original-To: help-gnu-emacs@gnu.org 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:34655 Archived-At: "Jim" writes: > Hello, > > I have export PS1='($PWD)> ' for my prompt on linux and it works fine in > my shell displaying > the path after a 'cd' command. However in emacs after a 'cd' command the > output has junk > in the path: ^[]1:Test^G^[]2;Test ???@cc99^G^[]3:/r/... > > Thanks in advance for any advice, > Jim > > I suspect you are using ANSI escape characters to set the colour of your prompt. Look for the ansi-color with apropos and you will find some emacs modes for providing ansi color support within terminal/shell modes. Tim -- tcross (at) rapttech dot com dot au