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 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