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

Re: sticky-note and prompt color leftovers (Re: PATCH: broader support for highlight groups)



On Fri, Mar 29, 2024 at 6:06 PM Oliver Kiddle <opk@xxxxxxx> wrote:
>
> Firstly, on the subject of sticky-note, had you intended to commit 47563
> and/or 48773?

No, but I was planning to commit 52314 if any feedback were provided
(which none has been, so far).  So please have a look a that, if you
don't mind.

> sticky-note uses raw escape sequences so it remains as broken as before.

Indeed, the ideal thing would be rewriting it to use highlight
instead.  (Not that I'm asking you to do more than provide pointers.)

> It doesn't need much more than to precede the vared with, e.g.
>   local zle_highlight=( default:fg=black,bg=yellow )

OK.  What about effects like underlining or blinking?

> I know that when I worked on this a year ago, I had it in mind to add
> an additional key for zle_highlight which is used for line clearing
> allowing a background for the area on the right that doesn't contain
> text. I can't remember whether or not it was discussed. Any thoughts on
> the name - viewport, buffer, field?

I don't recall discussion either.  How (if at all) does the PREDISPLAY
/ POSTDISPLAY text fit into this?  Would the fallback case be to match
the bg= color or to use the terminal default background?




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