From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27046 invoked from network); 16 Feb 2008 19:32:40 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) 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.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 16 Feb 2008 19:32:40 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 74457 invoked from network); 16 Feb 2008 19:32:36 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 16 Feb 2008 19:32:36 -0000 Received: (qmail 15953 invoked by alias); 16 Feb 2008 19:32:33 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24561 Received: (qmail 15939 invoked from network); 16 Feb 2008 19:32:33 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 16 Feb 2008 19:32:33 -0000 Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by bifrost.dotsrc.org (Postfix) with ESMTP id 634D28026E0B for ; Sat, 16 Feb 2008 20:32:30 +0100 (CET) Received: from torch.brasslantern.com ([71.121.18.67]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JWC005YEJPQC1K3@vms040.mailsrvcs.net> for zsh-workers@sunsite.dk; Sat, 16 Feb 2008 13:34:39 -0600 (CST) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id m1GJWEqS017161 for ; Sat, 16 Feb 2008 11:32:14 -0800 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id m1GJWDUe017160 for zsh-workers@sunsite.dk; Sat, 16 Feb 2008 11:32:13 -0800 Date: Sat, 16 Feb 2008 11:32:13 -0800 From: Bart Schaefer Subject: Re: Fw: Phil's prompt is not working when LANG is set to UTF-8 In-reply-to: <080216111335.ZM17124@torch.brasslantern.com> To: "Zsh Hackers' List" Message-id: <080216113213.ZM17159@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <20080215235241.2f255730@pws-pc> <080216111335.ZM17124@torch.brasslantern.com> Comments: In reply to Bart Schaefer "Re: Fw: Phil's prompt is not working when LANG is set to UTF-8" (Feb 16, 11:13am) X-Virus-Scanned: ClamAV 0.91.2/5837/Sat Feb 16 18:14:09 2008 on bifrost X-Virus-Status: Clean On Feb 16, 11:13am, Bart Schaefer wrote: } } Does it matter where %G appears? %{...%7G...%} ? } What if you use it more than once, as in %{...%7G...%3G%} ? Ooh, and what about negative numbers? Can one say %-4G to mean that the sequence actually moved the cursor to the LEFT four positions? *That* could be really useful. Another idea: How about sequences that actually move the cursor? %H and %V for horizontal/vertical? %4H -> move cursor four spaces to the right %5V -> move cursor five lines down %{%-6H%} -> move cursor six spaces to the left, but pretend you didn't If %} also remembered the cursor position, then you could also have: %P -> "pop" cursor back to where it was at the end of the last %{...%} This may be getting a little bit too far out there.