From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3063 invoked from network); 16 Nov 2007 14:57:51 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 16 Nov 2007 14:57:51 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 31890 invoked from network); 16 Nov 2007 14:57:44 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 16 Nov 2007 14:57:44 -0000 Received: (qmail 536 invoked by alias); 16 Nov 2007 14:57:40 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24096 Received: (qmail 521 invoked from network); 16 Nov 2007 14:57:40 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 16 Nov 2007 14:57:40 -0000 Received: (qmail 31535 invoked from network); 16 Nov 2007 14:57:39 -0000 Received: from rn-out-0910.google.com (HELO rn-out-0102.google.com) (64.233.170.187) by a.mx.sunsite.dk with SMTP; 16 Nov 2007 14:57:33 -0000 Received: by rn-out-0102.google.com with SMTP id e24so829824rng for ; Fri, 16 Nov 2007 06:57:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=/pDvgfPAiYpv9XKIpHS8eat+wsO60wTrlSG53yjePcY=; b=r7EWK1bmZm8vXpr/7o7sM5qq7xwra807GQhCnzaB6bDB7JpJZo6E2rTLFsSnB4I/IgKtonbB4P3tRxXgz2gw+Ffaqc56udZx0ocUN0YWaMm6i++xjdQ2lsw9zjDUf05Ntdgv9Qq0UWdqha5Kpi36MB/ykyV0wz3fANZZFnBdtTY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qE4OqqYZmjgHdQZKvCSYo/WKUAmVS0NMV9VPHWguDyFtOVfpP1j9RuC/wg+JVh2rh0qzdoQCyh+HRHCq/awBwKKiq+C1gvxrmxEORi8Mj7fr1bvtWlRKOwi0pJrGfsapXAgJGil1hMe6h1IzEZkTeKHRQ8Pyd91QizY4rk7kvXI= Received: by 10.142.47.6 with SMTP id u6mr582623wfu.1195225051560; Fri, 16 Nov 2007 06:57:31 -0800 (PST) Received: by 10.142.86.21 with HTTP; Fri, 16 Nov 2007 06:57:31 -0800 (PST) Message-ID: <237967ef0711160657x550e449ch44c78a8798238372@mail.gmail.com> Date: Fri, 16 Nov 2007 15:57:31 +0100 From: "Mikael Magnusson" To: zsh-workers@sunsite.dk Subject: Re: Geoff's prompt escape sequences patch (workers/23924) In-Reply-To: <071018065911.ZM11918@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <071018065911.ZM11918@torch.brasslantern.com> On 18/10/2007, Bart Schaefer wrote: > I just noticed this never got committed to CVS. I've tried it and it is > giving 99% of the correct behavior now (well, what I think is the correct > behavior; I never tried ending a prompt by turning ON standout, before). > > The only glitch I can find by randomly fooling around is that completion > sometimes erases a standout space to the left of the word, inserts a plain > space, and then draws the completed word in standout, so you end up with > a command line with a "hole" in it. Any further redraw of the line after > this point (such as completing again on a later word) repaints correctly > and fills the hole. > > Fixing that probably means diving into the completion refresh code, so I > think committing what Geoff has so far would be fine. I've found another problem that seems to be caused by this patch (located by git-bisect). When a bg'd job finishes, the cursor is drawn in the wrong place in the new prompt (#bar characters to the left). Pressing a key bound to reset-prompt fixes it. The simplest test case i could find was zsh -f PS1="frobnizz %#" #not really needed but since the default depends on hostname... RPS1="foo%(1j.bar.)" true & -- Mikael Magnusson