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

Re: [PATCH v2] prompt: support generic non-visible regions



On Wed, Aug 17, 2022 at 3:31 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Mon, Aug 15, 2022 at 2:37 PM Felipe Contreras
> <felipe.contreras@xxxxxxxxx> wrote:
> >
> > Do we want something like "\001foo\002%\001bar%\002"?
>
> More on this below.

Oops, forgot to come back to that.

If nesting isn't a concern, then %{\001%} would do it, just change the
tests in the patch to be
(bv->dontcount == 0 && *bv->fm == 0x01)
I don't think there's any reason to treat control characters as non-zero-width?

(Note I'm hoping for input from others than Filipe and I on whether
nesting is important.)

If nesting is a problem, then I suppose yes, we need %\001 like we
have %% and %).  Other suggestions welcome.




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