From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8549 invoked from network); 2 May 2008 11:14:55 -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.4 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; 2 May 2008 11:14:55 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 63902 invoked from network); 2 May 2008 11:14:52 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 2 May 2008 11:14:52 -0000 Received: (qmail 12719 invoked by alias); 2 May 2008 11:14:50 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24903 Received: (qmail 12700 invoked from network); 2 May 2008 11:14:49 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 2 May 2008 11:14:49 -0000 Received: from cluster-g.mailcontrol.com (cluster-g.mailcontrol.com [85.115.41.190]) by bifrost.dotsrc.org (Postfix) with ESMTP id 8AA4B80ED172 for ; Fri, 2 May 2008 13:14:41 +0200 (CEST) Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly21g.srv.mailcontrol.com (MailControl) with ESMTP id m42BEdeM018806 for ; Fri, 2 May 2008 12:14:39 +0100 Received: from news01 ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.3959); Fri, 2 May 2008 12:14:38 +0100 Date: Fri, 2 May 2008 12:14:38 +0100 From: Peter Stephenson To: zsh-workers@sunsite.dk Subject: Re: PATCH: isearch match highlighting Message-ID: <20080502121438.65f18d3b@news01> In-Reply-To: References: <17393e3e0804261727s560acff7sb6125d8f8b46b4b4@mail.gmail.com> <200804271957.m3RJvxiS004075@pws-pc.ntlworld.com> <17393e3e0804271849l30fe20bdp4008fc8247298d12@mail.gmail.com> <20080428102001.7b55074e@news01> <20080429181022.12809d23@news01> <20080501113706.4910492b@news01> Organization: CSR X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.5; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 02 May 2008 11:14:38.0554 (UTC) FILETIME=[B5F56BA0:01C8AC45] X-Scanned-By: MailControl A-08-50-01 (www.mailcontrol.com) on 10.71.0.131 X-Virus-Scanned: ClamAV 0.91.2/7010/Fri May 2 02:09:47 2008 on bifrost X-Virus-Status: Clean On Fri, 2 May 2008 12:49:13 +0200 "Nikolai Weibull" wrote: > On Thu, May 1, 2008 at 12:37 PM, Peter Stephenson wrote: > > On Tue, 29 Apr 2008 18:10:22 +0100 > > > Peter Stephenson wrote: > > > > I would like at the least to make the use of the ANSI escapes > > > configurable. They are in completion listings, but unfortunately that's > > > tied to the variable interface for GNU ls colouring which doesn't really > > > fit the case here. I suppose special values in zle_highlight would be > > > suitable (with bindkey escapes). > > > I've done this. Looks suspiciously like overkill, but it's probably best > > to be general. > > Doesn't terminfo/termcap provide this kind of information? Not that I can see. You can query the maximum number of colours, and there are termlib and termcap sequences for setting a particular colour. I haven't found a sequence for restoring the default, and no guarantee that the termcap sequences, where supported, produce the same colours as the ANSI ones in the same range, though it's probably a good bet. pws