From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Shiyuan Newsgroups: gmane.emacs.help Subject: prompt string not recognized by term or ansi-term Date: Sat, 6 Sep 2014 16:21:19 -0700 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1410045704 12079 80.91.229.3 (6 Sep 2014 23:21:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Sep 2014 23:21:44 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 07 01:21:37 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XQPIU-0003cn-Gc for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Sep 2014 01:21:34 +0200 Original-Received: from localhost ([::1]:36556 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQPIT-0003rC-En for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Sep 2014 19:21:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQPII-0003r7-AU for help-gnu-emacs@gnu.org; Sat, 06 Sep 2014 19:21:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XQPIH-0007qp-Dz for help-gnu-emacs@gnu.org; Sat, 06 Sep 2014 19:21:22 -0400 Original-Received: from mail-wi0-x233.google.com ([2a00:1450:400c:c05::233]:63790) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQPIH-0007pu-55 for help-gnu-emacs@gnu.org; Sat, 06 Sep 2014 19:21:21 -0400 Original-Received: by mail-wi0-f179.google.com with SMTP id q5so984580wiv.12 for ; Sat, 06 Sep 2014 16:21:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=wUHJ50SFYu/7xPTb2ECbNxP5KuX3mBxzoDxCmH3UJBs=; b=vVh4J11jL5hqdBAeTZZ14oxsTQYGz1in98Jki5SVXOVUCJFl4PwajPrdKK0zN9RmIL xJ5Qty3dIz6A0zqmLz9NH5XtWTf6sKrUIB8PlEZgZG+/JO9bXg+tsnfz1lfyZcuWd061 DuTi9FuwzzTWW4Cvb9W8QxFlTLhKWXhM8JXkgoHCye5kUGT6/S1A+jHXvpFaQRw2ZlfR 97Yoaj0LY+ypveEJ1Z7xPYsYZQSyQ++FBO4+P8mJHXbB/LqF8WtQSZxsimbxFyN4POBk tq13OhYtg+stjMhZ4OMhAgoCEficwqt8tpzPaJmpWNeV06f9x8uhZZLmbB1jw0/3N3Oa x1jw== X-Received: by 10.180.87.66 with SMTP id v2mr12985308wiz.28.1410045679488; Sat, 06 Sep 2014 16:21:19 -0700 (PDT) Original-Received: by 10.217.40.201 with HTTP; Sat, 6 Sep 2014 16:21:19 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::233 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99675 Archived-At: 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