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

Re: Bug in RPROMPT alighnment



On Tue, Oct 4, 2022 at 1:33 AM Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>
> On 10/4/22, Dan Neal <dan.r.neal@xxxxxxxxx> wrote:
> > ```
> > RPROMPT=$(eval "echo '\e]8;;http://example.com\aThis is a link\e]8;;\a'")
> > ```
>
> You need to use %{ and %} around non-printable escape sequences in your prompt.

In this case he needs %{ %} around everything but "This is a link"
because the entire URL is "non-printable":

RPROMPT=$(eval "echo '%{\e]8;;http://example.com\a%}This is a
link%{\e]8;;\a%}'")




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