Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: region_highlight converts `fg=default` to `none`, which is not the same
- X-seq: zsh-workers 47493
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Oliver Kiddle <opk@xxxxxxx>
- Subject: Re: region_highlight converts `fg=default` to `none`, which is not the same
- Date: Sat, 24 Oct 2020 08:42:07 +0200
- Archived-at: <https://zsh.org/workers/47493>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2020-10/CAN%3D4vMqs-Hovs6GNtZBKUnFg1bm4otj%3DNeKkrGi4EVe%2BjAy4bw%40mail.gmail.com>
- Authentication-results: zsh.org; iprev=pass (mail-il1-f176.google.com) smtp.remote-ip=209.85.166.176; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none
- Cc: Marlon Richert <marlon.richert@xxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kiZbTUKJIce1DfiDKe7H0GzgmnZW/5oztO/ggKDMhhI=; b=dNCyJVEegHRvUtaUXbWBcMPTAZCMF4KV3fRPXlrsKpgble/VbLnEtRHvKvZwkOvQi/ zr9r4qjvL70RfPHov4FLfwJiSTPNvzsieIJ6EBvHyvTO5al41QAICIcqwBSMV4Cuwson YiU9+CUP8JtFS6+Kw4XdiNWGUNj67+J6h3OEyhpIdSZP+ynHfu5H8jSVdj4SjWgdHHle CvxJLrDQY70Ob6DMeO9/M2YkRlEzDAASdZ1tq3W38rOPvtGW1gB+F1NZwDXpiZceiud6 IMUUKLL9cmWLiFO8iWHlUlbuLAZj0eiB3M5u4nAuuvcZ0D4gvVNlyR+x9QATkX0T1Pns ruPQ==
- In-reply-to: <35332-1603503251.163773@XMcg.z-U3.rG9f>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-workers>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-workers.zsh.org>
- List-owner: <mailto:zsh-workers-request@zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-workers>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-workers>
- References: <CAN=4vMqencidrpknTheyjAYQRT9BHN8ZLXRFk2Z38Gfwx9mxyQ@mail.gmail.com> <0B36073E-6BF5-4C42-B591-1573FEC2AFA8@gmail.com> <CAN=4vMrhFNOF7-Zk5njFq=5guk=wTx27XBkc7BSnY4Aw23bWyQ@mail.gmail.com> <35332-1603503251.163773@XMcg.z-U3.rG9f>
- Sender: zsh-workers-request@xxxxxxx
On Sat, Oct 24, 2020 at 3:34 AM Oliver Kiddle <opk@xxxxxxx> wrote:
> I expect the original reason for having both OFF and ON flags was that
> the earliest code using this was the parsing of prompt %-escapes for
> which the distinction between off, on and unchanged is needed.
Yes, this must be the reason.
On/off/unchanged would be useful within {zle,region}_highlight as
well. This was touched on earlier in this thread. Right now it's
possible to request a region to be underlined while keeping all other
attributes (color, boldness, etc.) unchanged. It's not, however,
possible to *disable* underline while keeping everything else
unchanged. With prompt extensions this is available via '%u'.
Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author