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

Re: Functions/Misc/colors vs. region_highlight

On 4. Nov 2020, at 1.45, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:

On Tue, Nov 3, 2020 at 10:54 AM Marlon Richert <marlon.richert@xxxxxxxxx> wrote:

Would it be possible to drop `standout` (as it's rather ambiguous) and instead add both `italic` and `reverse`? They both have `terminfo` entries.

If you're referring to Functions/Misc/colors, that's what my proposed patch already does.

If you're referring to prompts, "standout" appears only in the documentation, but the prompt sequences are %S (on) and %s (off) to be suggestive thereof.  %R and %I are already in use for other features; we'd need some kind of extended syntax (%F{name} is not nestable).

Actually, I was talking about `region_highlight`. It is currently very restrictive in what kind of formatting it supports. Perhaps I replied to the wrong email. Sorry about the confusion.

As for prompts, since they already support using raw escape code, it’s not really an issue there. `region_highlight`, however, does not offer any workarounds.

Messages sorted by: Reverse Date, Date, Thread, Author