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: Re: On prompt in shell mode Date: Thu, 14 Aug 2008 01:02:27 +0200 Message-ID: <48A36803.6020908@alice.it> References: <48A198B6.4080206@alice.it> <48A1F73E.4040504@alice.it> <48A3585C.9010208@alice.it> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1218668588 31889 80.91.229.12 (13 Aug 2008 23:03:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Aug 2008 23:03:08 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 14 01:04:00 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 1KTPNh-0001cE-Dc for ged-emacs-devel@m.gmane.org; Thu, 14 Aug 2008 01:03:53 +0200 Original-Received: from localhost ([127.0.0.1]:50776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTPMl-0006op-5K for ged-emacs-devel@m.gmane.org; Wed, 13 Aug 2008 19:02:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KTPMh-0006ok-Ob for emacs-devel@gnu.org; Wed, 13 Aug 2008 19:02:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KTPMf-0006oY-PK for emacs-devel@gnu.org; Wed, 13 Aug 2008 19:02:50 -0400 Original-Received: from [199.232.76.173] (port=46621 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTPMf-0006oV-Jf for emacs-devel@gnu.org; Wed, 13 Aug 2008 19:02:49 -0400 Original-Received: from smtp-out25.alice.it ([85.33.2.25]:1601) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KTPMf-00028J-35 for emacs-devel@gnu.org; Wed, 13 Aug 2008 19:02:49 -0400 Original-Received: from FBCMMO02.fbc.local ([192.168.68.196]) by smtp-out25.alice.it with Microsoft SMTPSVC(6.0.3790.1830); Thu, 14 Aug 2008 01:02:47 +0200 Original-Received: from FBCMCL01B08.fbc.local ([192.168.171.46]) by FBCMMO02.fbc.local with Microsoft SMTPSVC(6.0.3790.1830); Thu, 14 Aug 2008 01:02:47 +0200 Original-Received: from [87.6.222.18] ([87.6.222.18]) by FBCMCL01B08.fbc.local with Microsoft SMTPSVC(6.0.3790.1830); Thu, 14 Aug 2008 01:01:17 +0200 User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: X-OriginalArrivalTime: 13 Aug 2008 23:01:17.0609 (UTC) FILETIME=[7E500990:01C8FD98] 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:102424 Archived-At: Stefan Monnier ha scritto: > > I'm not sure we talk about the same thing. I'm talking about running > your shell in a Linux console, or within `screen', or inside a Wyse > terminal (if you can find one these days). I.e. without involving > Emacs at all. As I have written [1], defining PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ ' in /etc/profile or .bashrc works fine in RXVT, MRXVT, URXVT, XTERM, (KDE)Konsole WITHOUT Emacs. i.e. the code '\[\e]0;\w\a\]' prints the working directory as title of RXVT, MRXVT... window; the remains gives the terminal prompt in the form blank line (\n) user AT host (in green) working directory (yellow) $ (white) As reported here [2], the main problem Emacs meets is with the window title '\[\e]0;\w\a\]' (and perhaps this is to be expected) In any case, have you some comment on how to solve the other question I pointed out in [2], i.e. setting in .emacs (setenv "PS1" "prompt>") works, but (setenv "PS1" "address@hidden \w\n$ ") doesn't: Emacs starts with errors: "An error has occurred while loading '[...]/.emacs': error: Non-hex digit used for Unicode escape" Cheers, Angelo. --- [1] http://lists.gnu.org/archive/html/emacs-devel/2008-08/msg00536.html [2] http://lists.gnu.org/archive/html/emacs-devel/2008-08/msg00556.html