From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Newsgroups: gmane.emacs.help Subject: Re: Mysterious hidden end of line characters. Date: Fri, 1 Feb 2008 13:54:00 +0100 Message-ID: <20080201125400.GF20315@univ-fcomte.fr> References: <20080131170759.CC0B71BC00C@ufc.univ-fcomte.fr> <20080131175430.GA8312@univ-fcomte.fr> <87hcgtetni.fsf@thievol.homelinux.org> Reply-To: dpleydel@univ-fcomte.fr NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1201870287 23500 80.91.229.12 (1 Feb 2008 12:51:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Feb 2008 12:51:27 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Thierry Volpiatto Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 01 13:51:47 2008 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 1JKvMx-0008Iy-82 for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Feb 2008 13:51:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKvMV-000186-Oa for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Feb 2008 07:51:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JKvMF-00017i-2A for help-gnu-emacs@gnu.org; Fri, 01 Feb 2008 07:51:03 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JKvMC-00013B-B0 for help-gnu-emacs@gnu.org; Fri, 01 Feb 2008 07:51:01 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKvMC-000130-4k for help-gnu-emacs@gnu.org; Fri, 01 Feb 2008 07:51:00 -0500 Original-Received: from ufc.univ-fcomte.fr ([194.57.91.200]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JKvMB-0007WO-T7 for help-gnu-emacs@gnu.org; Fri, 01 Feb 2008 07:51:00 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ufc.univ-fcomte.fr (Postfix) with ESMTP id 162153BC003; Fri, 1 Feb 2008 13:50:59 +0100 (CET) Original-Received: from ufc.univ-fcomte.fr ([127.0.0.1]) by localhost (ufc.univ-fcomte.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00746-01; Fri, 1 Feb 2008 13:50:58 +0100 (CET) Original-Received: from ufc204.univ-fcomte.fr (ufc204.univ-fcomte.fr [194.57.91.204]) by ufc.univ-fcomte.fr (Postfix) with ESMTP id 05D0E3BC005; Fri, 1 Feb 2008 13:50:58 +0100 (CET) Original-Received: from dell-1 (localhost.localdomain [127.0.0.1]) by ufc204.univ-fcomte.fr (Postfix) with SMTP id E654E3C29E7; Fri, 1 Feb 2008 13:50:56 +0100 (CET) Original-Received: by dell-1 (sSMTP sendmail emulation); Fri, 01 Feb 2008 13:54:00 +0100 Content-Disposition: inline In-Reply-To: <87hcgtetni.fsf@thievol.homelinux.org> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: amavisd-new at univ-fcomte.fr X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:51148 Archived-At: > > ~ $ su > > Password: > > dell-1 /home/dave # > > > > What options are there for having a nicer prompt in eshell? It would > > be nice to show the path in the prompt when the path is short or > > abreviate the path in the prompt when the path is long. Am I dreaming? > > Is it what you need ? > > (setq eshell-output-filter-functions (list 'eshell-handle-ansi-color > 'eshell-handle-control-codes > 'eshell-watch-for-password-prompt)) Thanks Thiery, well not quite. Actually, something funny happened with my last email, what I see at the prompt for the super user has some code which looks like "^ [1;31m", but when I send this email from emacs to mutt this code becomes converted so in the email it doesn't look so bad and no one could see what the problem was. To get around this I have added a space after the ^ in this email. It's the "^ [1;31m" which really looks bad in the eshell. It looks like this short piece of code isn't converted but just pronted as it is making the prompt for the super user look ugly. cheers Dave