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

Re: Curses overlay on existing screen content



On Fri, Aug 19, 2022 at 1:16 PM Zach Riggle <zachriggle@xxxxxxxxx> wrote:
>
> I'm new to curses and was playing around with zsh/curses, but it seems that the screen will always clear on init and end -- there's no way to create a "window" at the bottom of the screen and persist its contents after "end".

This is going to depend entirely on the implementation of endwin() in
whatever curses library zsh is linked against; "zcurses end" merely
invokes that.

You might be able to fool it by sending some explicit control
sequences to tell the terminal to change the viewport first ... or
just never call "zcurses end" and shuffle the cursor position etc.
around yourself once you are seeing what you want.

Ultimately it would be nice to add "scr_dump" or "putwin" to zcurses
so you could dump the screen to a file and then slurp it in after
"end", but it looks like (web search) ncurses doesn't implement those
functions yet anyway?




Messages sorted by: Reverse Date, Date, Thread, Author