Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] prompt: support generic non-visible regions
On Thu, Aug 11, 2022 at 3:38 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Thu, Aug 11, 2022, 2:47 PM Felipe Contreras <felipe.contreras@xxxxxxxxx> wrote:
>>
>> > > It's the same: what we do in zsh with `%F{color}`, we do in readline
>> > > with $'\001\e[31m\002'.
>>
>> This is my sincere belief. You are free to not believe it is.
>
>
> This is getting a bit silly, but:
>
> While the above is generically true, given "color" is a placeholder for a set of possible escapes of which "31m" is a specific example, it is not true that $'\001anyrandomstring\002' in readline is accomplished via %F{anything} in zsh.
Fine, if you really want to be punctilious: "%F{red}" =>
"\001\e[31m\002", and "%F{$color_name}" =>
"\001\e[${color_code}m\002".
I don't see what this has to do with the patch.
Anyway, since I haven't seen any comments regarding the actual code of
the patch I've resent it with the updated commit message.
--
Felipe Contreras
Messages sorted by:
Reverse Date,
Date,
Thread,
Author