Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Cursor save/restore is redrawing over existing output



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