zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Seth House <seth@eseth.com>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: Cursor save/restore is redrawing over existing output
Date: Thu, 17 Dec 2020 21:40:12 -0800	[thread overview]
Message-ID: <CAH+w=7YfGKRQyzF+gJO0nPY-s=TsoGJQ-1kXB0TwXM6a_N6EPQ@mail.gmail.com> (raw)
In-Reply-To: <2125772511.25490373.1608257220571.JavaMail.zimbra@eseth.com>

On Thu, Dec 17, 2020 at 6:25 PM Seth House <seth@eseth.com> wrote:
>
> Everything prints as expected until the final printf. After that the
> cursor does indeed move, however everything below the first printf is
> erased.

The ZLE editor presumes that the prompt is always printed at the
bottom of any output and clears the screen so that there's nothing to
interfere with completion listings and other messages that the editor
may want to display below that prompt.

Depending on why you're attempting to save and restore the cursor,
there may be a ZLE-compatible way to accomplish what you want.


  reply	other threads:[~2020-12-18  5:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-18  2:25 Seth House
2020-12-18  5:40 ` Bart Schaefer [this message]
2020-12-18  6:15   ` Seth House
2020-12-18  8:44     ` Roman Perepelitsa
2020-12-19 20:29       ` Seth House

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=7YfGKRQyzF+gJO0nPY-s=TsoGJQ-1kXB0TwXM6a_N6EPQ@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=seth@eseth.com \
    --cc=zsh-users@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).