Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: isearch match highlighting



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