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



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