From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#5255: 23.1.90; Wrong prompt in term Date: Tue, 22 Dec 2009 07:44:50 -0800 (PST) Message-ID: <200912221544.nBMFio58026144@godzilla.ics.uci.edu> References: <9de1a5ef0912201844r45f00f26s82560a57251524d0@mail.gmail.com> <200912221438.nBMEc4YS025361@godzilla.ics.uci.edu> <9de1a5ef0912220652s2e5d1982x20a49f4c5928f044@mail.gmail.com> <200912221513.nBMFDG8E025776@godzilla.ics.uci.edu> <9de1a5ef0912220725v7b179283tba7a0085ccfa194@mail.gmail.com> Reply-To: Dan Nicolaescu , 5255@debbugs.gnu.org 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 1261498329 30422 80.91.229.12 (22 Dec 2009 16:12:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Dec 2009 16:12:09 +0000 (UTC) Cc: 5255@debbugs.gnu.org To: Fabian Ezequiel Gallina Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 22 17:12:02 2009 Return-path: Envelope-to: geb-bug-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 1NN7L7-0002DD-FA for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Dec 2009 17:12:01 +0100 Original-Received: from localhost ([127.0.0.1]:43165 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NN7L7-0006Fr-EP for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Dec 2009 11:12:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NN7JZ-0005YY-Oi for bug-gnu-emacs@gnu.org; Tue, 22 Dec 2009 11:10:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NN7JV-0005VG-PI for bug-gnu-emacs@gnu.org; Tue, 22 Dec 2009 11:10:25 -0500 Original-Received: from [199.232.76.173] (port=51904 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NN7JV-0005V4-Dh for bug-gnu-emacs@gnu.org; Tue, 22 Dec 2009 11:10:21 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45779) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NN7JU-0000ar-FC for bug-gnu-emacs@gnu.org; Tue, 22 Dec 2009 11:10:20 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NN6vx-0002Pb-PH; Tue, 22 Dec 2009 10:46:01 -0500 X-Loop: bug-gnu-emacs@gnu.org Mail-Followup-To: Dan Nicolaescu , 5255@debbugs.gnu.org Resent-From: Dan Nicolaescu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Dec 2009 15:46:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5255 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5255-submit@debbugs.gnu.org id=B5255.12614967199245 (code B ref 5255); Tue, 22 Dec 2009 15:46:01 +0000 Original-Received: (at 5255) by debbugs.gnu.org; 22 Dec 2009 15:45:19 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NN6vH-0002P4-2S for submit@debbugs.gnu.org; Tue, 22 Dec 2009 10:45:19 -0500 Original-Received: from paul-mcgann-v0.ics.uci.edu ([128.195.1.147]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NN6v2-0002OV-Un for 5255@debbugs.gnu.org; Tue, 22 Dec 2009 10:45:17 -0500 Original-Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by paul-mcgann-v0.ics.uci.edu (8.13.8/8.13.8) with ESMTP id nBMFipFI000760 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 22 Dec 2009 07:44:51 -0800 Original-Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id nBMFio58026144; Tue, 22 Dec 2009 07:44:50 -0800 (PST) In-Reply-To: <9de1a5ef0912220725v7b179283tba7a0085ccfa194@mail.gmail.com> (Fabian Ezequiel Gallina's message of "Tue, 22 Dec 2009 12:25:03 -0300") Original-Lines: 48 X-ICS-MailScanner-Information: Please send mail to helpdesk@ics.uci.edu or more information X-ICS-MailScanner-ID: nBMFipFI000760 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 22 Dec 2009 10:46:01 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:33724 Archived-At: Fabian Ezequiel Gallina writes: > 2009/12/22 Dan Nicolaescu : > > =C2=A0> > > =C2=A0> I guess I found the problem: > > =C2=A0> > > =C2=A0> [fgallina@cuca lisp]$ env | grep PROMPT_COMMAND > > =C2=A0> PROMPT_COMMAND=3Decho -ne "\033]0;${USER}@${HOSTNAME%%.*}:${P= WD/$HOME/~}\007" > > > > That looks like a bad idea. > > I am guessing that you are trying to set the xterm title to display t= he > > current directory in the shell, this uses an xterm specific escape se= quence. > > So it should only be done for xterm. > > >=20 > Yes, it is used just for that, I found this which explains the thing: > http://www.faqs.org/docs/Linux-mini/Xterm-Title.html#ss3.1 The explanation is not very clear, it actually shows how this can be done by using just PS1 and not PROMPT_COMMAND... And it's shown that is should only happen when TERM is xterm. > > But you should not need to use PROMPT_COMMAND to do this, it can be d= one > > by just setting the prompt, search the web for something like: "bash > > prompt xterm title" > > >=20 > I didn't set up it myself, I guess xterm sets this automatically. xterm does not do things like that. Your system does it then, and it's wrong, it should only do it if TERM is xterm. >=20 > > =C2=A0> Now the thing is that executing this in a normal terminal ren= ders > > =C2=A0> nothing, as opposed to term. My guess would be that term is m= issing > > =C2=A0> the \033] escape sequence. > > > > It's actually \033];STUFF\007. > > >=20 > Oh yes, actually that is not being taken into account and I guess it > should, at least that's what happens in emacs 23.1. This is an xterm specific escape sequence, most likely due to a bad setup, you'll get the same problem if you use a vt100 terminal for example.=20=20 So this is not a term.el problem.