zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zach Riggle <zachriggle@gmail.com>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: Curses overlay on existing screen content
Date: Fri, 19 Aug 2022 14:06:35 -0700	[thread overview]
Message-ID: <CAH+w=7YEy88H_-bS=Ls14HxS4_ZVN2hQRo3DpLXauLNGzzKH6A@mail.gmail.com> (raw)
In-Reply-To: <CAMP9c5nNZTBiz-JF76Sxw5-czYZtm-fMR0Qn1=zd+ry21a6H3w@mail.gmail.com>

On Fri, Aug 19, 2022 at 1:16 PM Zach Riggle <zachriggle@gmail.com> 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?


      reply	other threads:[~2022-08-19 21:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-19 20:16 Zach Riggle
2022-08-19 21:06 ` Bart Schaefer [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='CAH+w=7YEy88H_-bS=Ls14HxS4_ZVN2hQRo3DpLXauLNGzzKH6A@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=zachriggle@gmail.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).