From: Peter Stephenson <pws@csr.com>
To: zsh-workers@sunsite.dk
Subject: Re: PATCH: isearch match highlighting
Date: Fri, 2 May 2008 12:14:38 +0100 [thread overview]
Message-ID: <20080502121438.65f18d3b@news01> (raw)
In-Reply-To: <dbfc82860805020349xd6c25f7o166fe56b06bc897d@mail.gmail.com>
On Fri, 2 May 2008 12:49:13 +0200
"Nikolai Weibull" <now@bitwi.se> wrote:
> On Thu, May 1, 2008 at 12:37 PM, Peter Stephenson <pws@csr.com> wrote:
> > On Tue, 29 Apr 2008 18:10:22 +0100
>
> > Peter Stephenson <pws@csr.com> 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
prev parent reply other threads:[~2008-05-02 11:14 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-26 22:48 Peter Stephenson
2008-04-27 0:27 ` Matt Wozniski
2008-04-27 16:48 ` Bart Schaefer
2008-04-27 19:57 ` Peter Stephenson
2008-04-28 1:49 ` Matt Wozniski
2008-04-28 9:20 ` Peter Stephenson
2008-04-28 10:50 ` Matt Wozniski
2008-04-28 11:02 ` Peter Stephenson
2008-04-29 17:10 ` Peter Stephenson
2008-04-29 20:12 ` Matt Wozniski
2008-04-29 20:21 ` Matt Wozniski
2008-05-01 10:37 ` Peter Stephenson
2008-05-02 10:49 ` Nikolai Weibull
2008-05-02 11:14 ` Peter Stephenson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080502121438.65f18d3b@news01 \
--to=pws@csr.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).