From: Fabian Ezequiel Gallina <galli.87@gmail.com>
To: Dan Nicolaescu <dann@ics.uci.edu>
Cc: 5255@debbugs.gnu.org
Subject: bug#5255: 23.1.90; Wrong prompt in term
Date: Tue, 22 Dec 2009 11:52:14 -0300 [thread overview]
Message-ID: <9de1a5ef0912220652s2e5d1982x20a49f4c5928f044@mail.gmail.com> (raw)
In-Reply-To: <200912221438.nBMEc4YS025361@godzilla.ics.uci.edu>
2009/12/22 Dan Nicolaescu <dann@ics.uci.edu>:
> Fabian Ezequiel Gallina <galli.87@gmail.com> writes:
>
> > In emacs 23.1 when I use M-x term the prompt is rendered correctly to
> > whatever is defined on the PS1 environment variable. But in 23.1.90.1 it
> > prompts whatever is defined in the PS1 but also before that, it prompts
> > 0;<user>@<host>:<location>.
> >
> > The steps to reproduce it are quite simple:
> >
> > emacs -Q
> > M-x term
> >
> > The prompt is rendered like this:
> >
> > 0;fgallina@cuca:~/Builds/emacs[fgallina@cuca emacs]$
> >
> > Since my PS1 is set to
> >
> > PS1='[\u@\h \W]\$ '
> >
> > the expected result is:
> >
> > [fgallina@cuca emacs]$
>
> I can't reproduce this.
> Are you sure that your prompt is set to what you show there? Maybe the
> system default sets it to something else?
>
I guess I found the problem:
[fgallina@cuca lisp]$ env | grep PROMPT_COMMAND
PROMPT_COMMAND=echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"
Now the thing is that executing this in a normal terminal renders
nothing, as opposed to term. My guess would be that term is missing
the \033] escape sequence.
next prev parent reply other threads:[~2009-12-22 14:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200912281928.nBSJSLSU012776@godzilla.ics.uci.edu>
2009-12-21 2:44 ` bug#5255: 23.1.90; Wrong prompt in term Fabian Ezequiel Gallina
2009-12-22 14:38 ` Dan Nicolaescu
2009-12-22 14:52 ` Fabian Ezequiel Gallina [this message]
2009-12-22 15:13 ` Dan Nicolaescu
2009-12-22 15:25 ` Fabian Ezequiel Gallina
2009-12-22 15:44 ` Dan Nicolaescu
2009-12-28 5:11 ` Fabian Ezequiel Gallina
2009-12-29 18:19 ` Stefan Monnier
2009-12-28 19:29 ` bug#5255: marked as done (23.1.90; Wrong prompt in term) Emacs bug Tracking System
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9de1a5ef0912220652s2e5d1982x20a49f4c5928f044@mail.gmail.com \
--to=galli.87@gmail.com \
--cc=5255@debbugs.gnu.org \
--cc=dann@ics.uci.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.