zsh-workers
 help / color / mirror / code / Atom feed
From: Zang <zealot0630@gmail.com>
To: Mikael Magnusson <mikachu@gmail.com>
Cc: zsh-workers@zsh.org
Subject: Re: ZLE got wrong prompt line size, resulting redisplay eats lines when called
Date: Mon, 24 Oct 2022 16:38:05 +0800	[thread overview]
Message-ID: <CAOrge3pae8uyYdX4-17Fd=5Hv6OCrYr3nGAXZx3E+MmHGhP7zg@mail.gmail.com> (raw)
In-Reply-To: <CAHYJk3ShbpVYkzmQpPPEP9bUGWzV-DzMjLxO3HAEo8oSEf+beQ@mail.gmail.com>

On Mon, Oct 24, 2022 at 4:20 PM Mikael Magnusson <mikachu@gmail.com> wrote:
> If you're printing characters that move the cursor, it is up to you to
> tell zsh about it. In this case I suppose you could surround the
> entire construct with %{ %}.
>

%{ %} works for me. I wish there can be some debug message when any
unrecognized character is encountered while calculating string size.
It is not easy to triangle the root cause of the problem while one
just experiences that some lines are mysteriously gone.

> --
> Mikael Magnusson


      reply	other threads:[~2022-10-24  8:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-24  7:27 Zang
2022-10-24  8:20 ` Mikael Magnusson
2022-10-24  8:38   ` Zang [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='CAOrge3pae8uyYdX4-17Fd=5Hv6OCrYr3nGAXZx3E+MmHGhP7zg@mail.gmail.com' \
    --to=zealot0630@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).