Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Cursor save/restore is redrawing over existing output
- X-seq: zsh-users 26232
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Seth House <seth@xxxxxxxxx>
- Subject: Re: Cursor save/restore is redrawing over existing output
- Date: Thu, 17 Dec 2020 21:40:12 -0800
- Archived-at: <https://zsh.org/users/26232>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2020-12/CAH%2Bw%3D7YfGKRQyzF%2BgJO0nPY-s%3DTsoGJQ-1kXB0TwXM6a_N6EPQ%40mail.gmail.com>
- Authentication-results: zsh.org; iprev=pass (mail-oi1-f174.google.com) smtp.remote-ip=209.85.167.174; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LV370ty2otwSdVfVF44MPD2y5V9g+dvKBTRIe3rK0qQ=; b=irsOkHigYIFiNKy4mQhVr9hqKxg3u4toILrg4QbTIAL0XbJoMxKWyuxlJQK+Xs8vMT qwQB1BPi+opBJ5deZ9TRLBxlqxrehRZIxdm4SWplbwatwv6XZr4wdeihETJbEvmcdxzL y6SUGUfn4XLTLqeV4j/IuAz6IIhOOGv400oPuoYNDjNFMVSZObky/cW5fJ+ZG/8jwsg0 jZI6xfYgzAAak0cUlx47nHG8zhi7CxrK0ISNl15aG8QxBZNecrSqJl1i9gzTCOrp5FBg 2Oloj/Px3ai64cy5tf/JwrRfjN9NjxF4iDvZpsaUb/0tGIE639euo1XEsD42gWjhyrjx 8b5w==
- In-reply-to: <2125772511.25490373.1608257220571.JavaMail.zimbra@eseth.com>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-users>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-users.zsh.org>
- List-owner: <mailto:zsh-users-request@zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-users>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-users>
- References: <2125772511.25490373.1608257220571.JavaMail.zimbra@eseth.com>
- Sender: zsh-users-request@xxxxxxx
On Thu, Dec 17, 2020 at 6:25 PM Seth House <seth@xxxxxxxxx> 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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author