help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Fabian Lindner <MFL01@gmx.de>
Cc: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: Re: Escape sequences are not interpreted by "zle -M"
Date: Sun, 19 Jun 2022 15:13:31 -0700	[thread overview]
Message-ID: <CAH+w=7Yo+Zj1+mAO9TmKhjvDeBO22OPYoWxB39VKf7Su6UaXJg@mail.gmail.com> (raw)
In-Reply-To: <3B280AA7-EBFB-467C-A3B4-8B990579CDD1@getmailspring.com>

On Thu, Jun 16, 2022 at 12:35 PM Fabian Lindner <MFL01@gmx.de> wrote:
> I noticed a bug (I believe), where escape sequences (for example color
> codes) do not work as intended when beeing displayed with "zle -M".

This is intentional, zle -M passes everything through the equivalent
of the parameter expansion (V) flag and always has.  The main reason
for this is to prevent the message from causing zle to lose track of
the cursor or have part of the other output scribbled over.  This is
also true of strings sent to zle -R.

Depending on what you're actually attempting to accomplish, there may
be an alternative to "zle -M".

      reply	other threads:[~2022-06-19 22:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-16 19:34 Fabian Lindner
2022-06-19 22:13 ` 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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH+w=7Yo+Zj1+mAO9TmKhjvDeBO22OPYoWxB39VKf7Su6UaXJg@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=MFL01@gmx.de \
    --cc=zsh-workers@zsh.org \
    --subject='Re: Escape sequences are not interpreted by "zle -M"' \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:


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).