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

Re: Help fix Zsh shell command prompt error or stranee



On Sun, Aug 20, 2023 at 1:15 AM Grant Taylor <gtaylor@xxxxxxxxxxxxxxxxxx> wrote:
>
> Proper use of %{ and %} sequences to keep ZLE from counting the
> non-printing / control characters helps a lot.

In the vast majority of cases one can replace %{...%} with a
first-class %-sequence. For example, instead of %{\033[31m%} one can
use %F{red}.

Roman.




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