From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15429 invoked from network); 22 Sep 2008 22:48:34 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 22 Sep 2008 22:48:34 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 39338 invoked from network); 22 Sep 2008 22:48:21 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 22 Sep 2008 22:48:21 -0000 Received: (qmail 17740 invoked by alias); 22 Sep 2008 22:48:16 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25725 Received: (qmail 17723 invoked from network); 22 Sep 2008 22:48:15 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 22 Sep 2008 22:48:15 -0000 Received: from mho-02-bos.mailhop.org (mho-02-bos.mailhop.org [63.208.196.179]) by bifrost.dotsrc.org (Postfix) with ESMTPS id 85E9A8030847 for ; Tue, 23 Sep 2008 00:48:12 +0200 (CEST) Received: from a91-152-72-218.elisa-laajakaista.fi ([91.152.72.218]) by mho-02-bos.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1KhuCN-000BiS-Ph for zsh-workers@sunsite.dk; Mon, 22 Sep 2008 22:48:08 +0000 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 91.152.72.218 X-Report-Abuse-To: abuse@dyndns.com (see http://www.mailhop.org/outbound/abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1+ZtM+MAwvb4GHXg1nb4CB1t8vC0YftT3I= Message-ID: <48D82080.4000508@kotiportti.fi> Date: Tue, 23 Sep 2008 01:47:28 +0300 From: Casper Gripenberg User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: zsh-workers@sunsite.dk Subject: Strange escape codes in prompt Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.92.1/8310/Mon Sep 22 20:58:13 2008 on bifrost X-Virus-Status: Clean Hi. I've long been wondering why I from time to time see a spurious "%" on my line before the prompt. Normally this % character is not visible, but sometimes when I suspend a program or fg a program it pops up on a line. It always seemed a bit weird. So I completely reset my prompt from all colorization and geeky extra-info: PS1="PROMPT: " And then I took a look at the raw output of zsh, expecting to see nothing but a newline and "PROMPT: " being outputted. But this is what I got: [4m[7m%[m[1m[4m[0m[4m[0m[m[m[JPROMPT: Each '[' being prefixed by an escape. And lo..there is the mysterios "%" embedded into that sequence. Now my question is where do all these escapes come from? Is that normal and/or necessary? What do they do? Even if I did TERM=dumb ..the mysterious % still remained in the output. Running zsh 4.3.4 on Ubuntu 8.04. Thx. Casper