Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] prompt: support generic non-visible regions
- X-seq: zsh-workers 50461
- From: Felipe Contreras <felipe.contreras@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>, Oliver Kiddle <opk@xxxxxxx>, dana <dana@xxxxxxx>
- Subject: Re: [PATCH] prompt: support generic non-visible regions
- Date: Thu, 11 Aug 2022 13:48:52 -0500
- Archived-at: <https://zsh.org/workers/50461>
- In-reply-to: <CAH+w=7YVy2fqfaLFaTO64naB4atrFc0HzC6HRo3Um8cYGwX0AA@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <20220810115120.182853-1-felipe.contreras@gmail.com> <CAN=4vMqHNZJ7BvCCNbD7-0nPr1CbN1ecHQVxSsaZQ1Ao13__jg@mail.gmail.com> <CAH+w=7am4mzUae3+YAuWgvPsugGUbUCJkFys5eNZ87MUTTtR6Q@mail.gmail.com> <CAMP44s3HxGbUSe2Eauy20mknCLZ4DjVw0+QNZFW3dhd_FmcbYw@mail.gmail.com> <CAH+w=7YVy2fqfaLFaTO64naB4atrFc0HzC6HRo3Um8cYGwX0AA@mail.gmail.com>
On Thu, Aug 11, 2022 at 11:49 AM Bart Schaefer
<schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Thu, Aug 11, 2022, 11:20 AM Felipe Contreras <felipe.contreras@xxxxxxxxx> wrote:
>>
>>
>> For reference bash does have the equivalent of that with \[ \], but
>> that's specific to bash and it's converted to \001 \002 internally
>> which is what readline understands. A prompt function (like
>> __git_ps1()) cannot return \[ \].
>
> In that case we should document this as being for readline compatibility rather than bash prompt compatibility. Forestalls more of the slippery slope arguments, too.
The commit message mentions readline, not bash.
--
Felipe Contreras
Messages sorted by:
Reverse Date,
Date,
Thread,
Author