unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Shiyuan <gshy2014@gmail.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: prompt string not recognized by term or ansi-term
Date: Sat, 6 Sep 2014 16:21:19 -0700	[thread overview]
Message-ID: <CAOm4EMsucTvqPn3=OfzesD-d5Kog-2d=-RKyGr_a7R70vgLjFA@mail.gmail.com> (raw)

Hi all,
   I am using zsh and have some special setup for the prompt string. It
works well in Terminal.app in Mac. But in Emacs term mode, something is not
right.

In my .zshrc file, I set

PROMPT="%{$fg_bold[green]%}[%d]%{$reset_color%}>"
In Emacs term mode, the color  and the directory are correctly recognized,
but there is an extra character "4m" in front,

4m[/Users/shiyuang/lisp]>

---------
Where does  the "4m" come from? It's not there in Terminal.app which is
also using the zsh. Any explanations or references ?  Thank you.

Shiyuan


             reply	other threads:[~2014-09-06 23:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-06 23:21 Shiyuan [this message]
2014-09-09  2:54 ` prompt string not recognized by term or ansi-term Michael Heerdegen

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOm4EMsucTvqPn3=OfzesD-d5Kog-2d=-RKyGr_a7R70vgLjFA@mail.gmail.com' \
    --to=gshy2014@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).