From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1573 invoked from network); 24 Jul 2005 06:10:26 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 24 Jul 2005 06:10:26 -0000 Received: (qmail 12372 invoked from network); 24 Jul 2005 06:10:20 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 24 Jul 2005 06:10:20 -0000 Received: (qmail 8349 invoked by alias); 24 Jul 2005 06:10:17 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21514 Received: (qmail 8340 invoked from network); 24 Jul 2005 06:10:17 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 24 Jul 2005 06:10:17 -0000 Received: (qmail 12033 invoked from network); 24 Jul 2005 06:10:17 -0000 Received: from dsl3-63-249-88-2.cruzio.com (HELO dot.blorf.net) (63.249.88.2) by a.mx.sunsite.dk with SMTP; 24 Jul 2005 06:10:13 -0000 Received: by dot.blorf.net (Postfix, from userid 1000) id D90D465F4; Sat, 23 Jul 2005 23:10:11 -0700 (PDT) Date: Sat, 23 Jul 2005 23:10:11 -0700 From: Wayne Davison To: Bart Schaefer Cc: Zsh hackers list Subject: Re: PATCH: PROMPT_SP Message-ID: <20050724061011.GB19554@blorf.net> References: <20050714182506.GB11296@blorf.net> <20050715175551.GA29713@blorf.net> <1050716160634.ZM31049@candle.brasslantern.com> <20050716195612.GA11575@blorf.net> <200507181032.j6IAWB4q022520@news01.csr.com> <20050718181330.GA19066@blorf.net> <1050723135554.ZM19813@candle.brasslantern.com> <20050723165301.GB16571@blorf.net> <20050723171955.GC16571@blorf.net> <1050724052757.ZM20380@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1050724052757.ZM20380@candle.brasslantern.com> User-Agent: Mutt/1.5.9i X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 On Sun, Jul 24, 2005 at 05:27:57AM +0000, Bart Schaefer wrote: > What happens when THOSE characters cause the line to wrap? Then you only see as much of the [EOL] string as would fit on the line before the prompt (I had already tested that, and it seemed like a reasonable enough behavior). I had originally thought to use just an inverse ~ (kind of like the EOF indicator in vi/vim/less), but I thought that the [EOL] string might be clearer. But perhaps ~EOL~ would be better (which would degrade to a single ~ if nothing else fits). > You don't know how many RI to emit (COLUMNS-7 is definitely wrong in > your example). I don't follow this logic -- the code I posted works as expected (since the RI sequence is preceded by 5 characters and followed by 2 spaces). Perhaps you mean only in the case where the "[EOL]" wraps to the following line? ..wayne..