unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* prompt string not recognized by term or ansi-term
@ 2014-09-06 23:21 Shiyuan
  2014-09-09  2:54 ` Michael Heerdegen
  0 siblings, 1 reply; 2+ messages in thread
From: Shiyuan @ 2014-09-06 23:21 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: prompt string not recognized by term or ansi-term
  2014-09-06 23:21 prompt string not recognized by term or ansi-term Shiyuan
@ 2014-09-09  2:54 ` Michael Heerdegen
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Heerdegen @ 2014-09-09  2:54 UTC (permalink / raw)
  To: help-gnu-emacs

Shiyuan <gshy2014@gmail.com> writes:

> 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]>

Sadly, such things happen with term.  In some cases, term just
doesn't work correctly.

Michael.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-09  2:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-06 23:21 prompt string not recognized by term or ansi-term Shiyuan
2014-09-09  2:54 ` Michael Heerdegen

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).