From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25486 invoked from network); 24 Jul 2005 05:28:16 -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 05:28:16 -0000 Received: (qmail 84600 invoked from network); 24 Jul 2005 05:28:10 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 24 Jul 2005 05:28:10 -0000 Received: (qmail 3631 invoked by alias); 24 Jul 2005 05:28:08 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21512 Received: (qmail 3622 invoked from network); 24 Jul 2005 05:28:08 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 24 Jul 2005 05:28:08 -0000 Received: (qmail 84301 invoked from network); 24 Jul 2005 05:28:07 -0000 Received: from vms040pub.verizon.net (206.46.252.40) by a.mx.sunsite.dk with SMTP; 24 Jul 2005 05:28:01 -0000 Received: from candle.brasslantern.com ([71.116.88.149]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IK400F179UN751A@vms040.mailsrvcs.net> for zsh-workers@sunsite.dk; Sun, 24 Jul 2005 00:28:00 -0500 (CDT) Received: from candle.brasslantern.com (IDENT:schaefer@localhost [127.0.0.1]) by candle.brasslantern.com (8.12.11/8.12.11) with ESMTP id j6O5RvBK020382 for ; Sat, 23 Jul 2005 22:27:57 -0700 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id j6O5RvKs020381 for zsh-workers@sunsite.dk; Sat, 23 Jul 2005 22:27:57 -0700 Date: Sun, 24 Jul 2005 05:27:57 +0000 From: Bart Schaefer Subject: Re: PATCH: PROMPT_SP In-reply-to: <20050723165301.GB16571@blorf.net> In-reply-to: <20050723171955.GC16571@blorf.net> To: Zsh hackers list Message-id: <1050724052757.ZM20380@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii 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> Comments: In reply to Wayne Davison "Re: PATCH: PROMPT_SP" (Jul 23, 9:53am) Comments: In reply to Wayne Davison "Re: PATCH: PROMPT_SP" (Jul 23, 10:19am) 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.1 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 On Jul 23, 9:53am, Wayne Davison wrote: } Subject: Re: PATCH: PROMPT_SP } } One way to deal with that would be to output some } characters other than spaces that would only become visible when zsh } makes a partial line visible. What happens when THOSE characters cause the line to wrap? You don't know how many RI to emit (COLUMNS-7 is definitely wrong in your example). You can only do this right if you manage to do it with a single character. } Subject: Re: PATCH: PROMPT_SP } } I made the text bold too (if possible) and switched to using print } with prompt expansion. I was going to suggest that. Perhaps '%B%S$%s%b' would do it, as long as the user doesn't have promptsubst set; hrm.