From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22329 invoked by alias); 15 Jun 2013 12:22:46 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 31476 Received: (qmail 23466 invoked from network); 15 Jun 2013 12:22:42 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.223.180 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=tdQuc0m22MUK/8HF2nG+IdUCYyRMsC5OU3rrWAUaGVg=; b=k3iA0UqNrB1rM03U5hgkfzqhStPuB7N5h2x5aQuLH8MWEEH8qO7Qih+Bc+C1H/PcsI d4hyEk7CltJJxgCUtPuriU0MICEQHoN5UCtSbALgbhZIU/luWIKLmudhJpgN3SDPOTH9 ZSXMZ6uxwz62YGDbMerOm8y3aVRrxYOlIfWFeNLAGuKTZu4lRcGfPKDHgBlBnCmWo/ji FCx+D+qIAO4w3DidbAOV16CDFViCnXlSQXHSHZ74fTDkA8ioYQo1+PjpoMA1AXTN9pJW qCZR1dUhov0abJKY6JNE3bNmri5StUp6zQsFyV5zlq8eVrqF/p9t/nd8Hf0nmtWAQtV9 sHqA== MIME-Version: 1.0 X-Received: by 10.50.120.68 with SMTP id la4mr995743igb.49.1371298956189; Sat, 15 Jun 2013 05:22:36 -0700 (PDT) In-Reply-To: References: <130530221023.ZM11251@torch.brasslantern.com> Date: Sat, 15 Jun 2013 14:22:36 +0200 Message-ID: Subject: Re: Strange initial escape string From: Mikael Magnusson To: zsh workers Content-Type: text/plain; charset=UTF-8 On 15 June 2013 13:31, Mario Signorino wrote: > On Fri, May 31, 2013 at 7:10 AM, Bart Schaefer > wrote: > Now some question: > I've used some custom escape codes ( \033| ) to surround the important > info. Now I can trap these strings and easily work on them. This is > working. The problem is in the prompt. My PS1 is something like that: > > export XPIPETERMINATOR=$'\033|.' > PS1="${XPIPETERMINATOR}mario@squit $ " > > that "terminator" tells to my terminal that the previous command has just > finished. I use it to close any pending operation (show icons... git fancy > output): if I receive that, it means *for sure* that I am again on the > standard prompt. > The problem is that zsh does not know anything about that escape codes and > it thinks to have written more chars than it actually has: and it sends the > carriage return too early (when I reach the end of the line). > So: how can I tell to zsh to forget those 2 or 3 special chars? %{ %} -- Mikael Magnusson