From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Davison Newsgroups: gmane.emacs.help Subject: Re: shell prompt undesired characters Date: Wed, 08 Apr 2009 13:53:58 -0400 Message-ID: <8763hf2frd.fsf@stats.ox.ac.uk> References: <877i1vkrmd.fsf@stats.ox.ac.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1239213312 7980 80.91.229.12 (8 Apr 2009 17:55:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Apr 2009 17:55:12 +0000 (UTC) Cc: help-gnu-emacs mailing list To: Peter Dyballa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 08 19:56:29 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Lrc0f-0006VK-PC for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Apr 2009 19:56:26 +0200 Original-Received: from localhost ([127.0.0.1]:56542 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LrbzH-0005HX-Je for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Apr 2009 13:54:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LrbyR-00054A-5H for help-gnu-emacs@gnu.org; Wed, 08 Apr 2009 13:54:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LrbyM-00052C-Ck for help-gnu-emacs@gnu.org; Wed, 08 Apr 2009 13:54:06 -0400 Original-Received: from [199.232.76.173] (port=37807 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LrbyM-000526-7E for help-gnu-emacs@gnu.org; Wed, 08 Apr 2009 13:54:02 -0400 Original-Received: from markov.stats.ox.ac.uk ([163.1.210.1]:36444) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LrbyL-0004PA-Lv for help-gnu-emacs@gnu.org; Wed, 08 Apr 2009 13:54:01 -0400 Original-Received: from blackcap.stats.ox.ac.uk (blackcap.stats [163.1.210.5]) by markov.stats.ox.ac.uk (8.13.6/8.13.6) with ESMTP id n38Hs0re007820; Wed, 8 Apr 2009 18:54:00 +0100 (BST) Original-Received: by blackcap.stats.ox.ac.uk (Postfix, from userid 5158) id 71DAE3201A; Wed, 8 Apr 2009 18:54:00 +0100 (BST) In-Reply-To: (Peter Dyballa's message of "Wed, 8 Apr 2009 19:25:47 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Solaris 8 (1) 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:63581 Archived-At: Peter Dyballa writes: > Am 08.04.2009 um 19:00 schrieb Dan Davison: > >> Where are the strange initial characters above coming from when I >> run a >> bash shell in emacs and how can I fix it? > > > In ~/.emacs_bash you can set many things for a bash interpreter > running *shell* buffer (similarly for sh, csh, tcsh, ksh, ...). The > partial ANSI Esc code you gave looks like a reset/set normal of > previous colour or effect setting. It might work better when you add: > > (add-hook 'shell-mode-hook (lambda () > (ansi-color-for-comint-mode-on))) Thanks, but unfortunately that doesn't solve it. I've tried without any ~/.emacs and ~/.bashrc, on emacs22, and I still get those initial characters. They're not coming from $PS1, so where are they coming from? Dan > > -- > Greetings > > Pete > > There's no place like 127.0.0.1 > =E2=80=93 origin unknown