From: Bart Schaefer <schaefer@brasslantern.com>
To: Mikael Magnusson <mikachu@gmail.com>
Cc: Dan Neal <dan.r.neal@gmail.com>, zsh-workers@zsh.org
Subject: Re: Bug in RPROMPT alighnment
Date: Tue, 4 Oct 2022 12:40:38 -0700 [thread overview]
Message-ID: <CAH+w=7aRKG=HXGMqdAZPoDem6zP3zhBXEAr0Ae4N23=DdTRBZw@mail.gmail.com> (raw)
In-Reply-To: <CAHYJk3RO5mh8kPWUwn4cT_Sf0mcy0mvEOhxCukV_1eSD4QUmBw@mail.gmail.com>
On Tue, Oct 4, 2022 at 1:33 AM Mikael Magnusson <mikachu@gmail.com> wrote:
>
> On 10/4/22, Dan Neal <dan.r.neal@gmail.com> 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%}'")
prev parent reply other threads:[~2022-10-04 19:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-04 7:24 Dan Neal
2022-10-04 8:32 ` Mikael Magnusson
2022-10-04 19:40 ` Bart Schaefer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAH+w=7aRKG=HXGMqdAZPoDem6zP3zhBXEAr0Ae4N23=DdTRBZw@mail.gmail.com' \
--to=schaefer@brasslantern.com \
--cc=dan.r.neal@gmail.com \
--cc=mikachu@gmail.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).