[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Chgat() Functions Erase Pad Characters
From: |
Thomas Dickey |
Subject: |
Re: Chgat() Functions Erase Pad Characters |
Date: |
Sun, 8 Jan 2017 18:49:17 -0500 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Sun, Jan 08, 2017 at 12:53:47AM -0500, Grady Martin wrote:
> Hello, and curse all of you.
>
> The chgat() family of functions erase characters on stdscr that originate
> from pads. Why? Am I missing something in my code? Please see the attached
> demonstration program.
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.
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
signature.asc
Description: Digital signature