Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: questions re: NO_PROMPT_PERCENT
- X-seq: zsh-users 26885
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: questions re: NO_PROMPT_PERCENT
- Date: Mon, 9 Aug 2021 14:49:59 -0700
- Archived-at: <https://zsh.org/users/26885>
- In-reply-to: <31323-1628541975.218161@pkyE.Ss-A.4HoV>
- List-id: <zsh-users.zsh.org>
- References: <YQ34yepHrocPN++7@isis.sigpipe.cz> <31323-1628541975.218161@pkyE.Ss-A.4HoV>
On Mon, Aug 9, 2021 at 1:46 PM Oliver Kiddle <opk@xxxxxxx> wrote:
>
> For what it's worth, I neither see much breakage when turning
> prompt_percent off nor do I find any uses of print -P when grepping in
> the Completion directory of the zsh sources. If there are any, ${(%)...}
> should be used instead. Is your breakage perhaps just a messed up
> terminal due to literal escape sequences in your prompt?
Anything that depends on %{...%} to tell the prompt code (and by
extension the completion code) where there are cursor movements that
shouldn't be counted as part of the shape of the prompt, is going to
become broken if PROMPT_PERCENT is turned off. There are a couple of
things in the Functions/ tree (some of them written by me, I see) that
assume PROMPT_PERCENT is active without asserting it, but I don't see
anything like that in the Completion/ tree.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author