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

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



On Thu, Aug 11, 2022 at 4:09 PM Felipe Contreras
<felipe.contreras@xxxxxxxxx> wrote:
>
> readline uses \001 (start of header) and \002 (start of text) as markers
> to delimit a non-visible character zone, which are necessary to
> calculate the width of a prompt.

How does one embed a literal ctrl-A or ctrl-B in the prompt?  I
haven't found any readline documentation that explains the use of
"start of header" or "start of text".

In zsh, should an extra digit immediately following \001 be treated as
a "glitch" width?

I'm also leaning to the opinion that \001 and \002 should only be
recognized when PROMPT_PERCENT is unset.




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