Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: isearch match highlighting
- X-seq: zsh-workers 24903
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: PATCH: isearch match highlighting
- Date: Fri, 2 May 2008 12:14:38 +0100
- In-reply-to: <dbfc82860805020349xd6c25f7o166fe56b06bc897d@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Organization: CSR
- References: <godlygeek@xxxxxxxxx> <17393e3e0804261727s560acff7sb6125d8f8b46b4b4@xxxxxxxxxxxxxx> <200804271957.m3RJvxiS004075@xxxxxxxxxxxxxxxxxxx> <17393e3e0804271849l30fe20bdp4008fc8247298d12@xxxxxxxxxxxxxx> <20080428102001.7b55074e@news01> <20080429181022.12809d23@news01> <20080501113706.4910492b@news01> <dbfc82860805020349xd6c25f7o166fe56b06bc897d@xxxxxxxxxxxxxx>
On Fri, 2 May 2008 12:49:13 +0200
"Nikolai Weibull" <now@xxxxxxxx> wrote:
> On Thu, May 1, 2008 at 12:37 PM, Peter Stephenson <pws@xxxxxxx> wrote:
> > On Tue, 29 Apr 2008 18:10:22 +0100
>
> > Peter Stephenson <pws@xxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author