Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] prompt: support generic non-visible regions
- X-seq: zsh-workers 50460
- From: Felipe Contreras <felipe.contreras@xxxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] prompt: support generic non-visible regions
- Date: Thu, 11 Aug 2022 13:47:08 -0500
- Archived-at: <https://zsh.org/workers/50460>
- In-reply-to: <CAHYJk3Ro=aS+oLTuYUaRNX46tmHCCQ4UNcEY790bviax-PEGRg@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <20220810115120.182853-1-felipe.contreras@gmail.com> <CAHYJk3SvZEWxiN9Tvy9jm5H2qKbO1yUZtA9iPVw2-YMxiG=5Xw@mail.gmail.com> <CAMP44s3d6_afWc6kzMOq648T18wnFgtu=SjO9VxL=3R8yQ_FpA@mail.gmail.com> <CAHYJk3TgnBE7s2DA3MpOkECFdXngmYCdMb5zO0mOzB5B61mHpA@mail.gmail.com> <CAMP44s1bD1AEhKxT+a358V37zh_vdMWv+b=qqL9m6t=JEVdOVQ@mail.gmail.com> <CAHYJk3Ro=aS+oLTuYUaRNX46tmHCCQ4UNcEY790bviax-PEGRg@mail.gmail.com>
On Thu, Aug 11, 2022 at 1:32 PM Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> On 8/11/22, Felipe Contreras <felipe.contreras@xxxxxxxxx> wrote:
> > The commit message says:
> >
> > 1. We do readline $'\001\e[31m\002' as zsh '%F{red}'.
> >
> > This is true.
>
> The statement is true, but it's not what the commit message says, it says:
> "readline assumes anything between \001 (start of header) and \002 (start
> of text) is non-visible characters.
>
> In zsh we do this with `%F{color}`"
It's the same: what we do in zsh with `%F{color}`, we do in readline
with $'\001\e[31m\002'.
> I don't know why you are arguing about this, there's nothing bad about
> fixing an error in a commit message after someone points it out.
I don't believe it's an error. You are the one that is arguing it's an error.
Regardless of what you choose to call it, it will be changed. I don't
need you to believe it's correct, and you don't need me to believe
it's an error.
The end result is the same: it will change.
--
Felipe Contreras
Messages sorted by:
Reverse Date,
Date,
Thread,
Author