[prev in list] [next in list] [prev in thread] [next in thread]
List: ncurses-bug
Subject: Re: Chgat() Functions Erase Pad Characters
From: Grady Martin <sunnycemetery () gmail ! com>
Date: 2017-01-09 1:28:58
Message-ID: 20170109012858.GA4178 () creation
[Download RAW message or body]
On 2017年01月08日 18時49分, Thomas Dickey wrote:
> The data owned by the pad isn't shared with the standard screen (stdscr)
>
> The manpage:
>
> A pad is like a window, except that it is not restricted by the screen
> size, and is not necessarily associated with a particular part of the
> screen. Pads can be used when a large window is needed, and only a
> part of the window will be on the screen at one time. Automatic re-
>
> The mvchgat updates the standard screen, and the wgetch causes a refresh
> on the standard screen.
>
> So the updates to the standard screen overwrite the pad.
>
> Think of it as something like a newwin - making updates and refreshing
> one window will overwrite other windows that it happens to overlap.
Thank you for the insight, especially on a Sunday.
I think my logical course of action is to store "pad" data as cchar_t arrays, \
outputting them with the add_wchstr() family. (This is not text data; it is a \
scrollable grid of numbers.)
_______________________________________________
Bug-ncurses mailing list
Bug-ncurses@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-ncurses
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic