|
From: | Thomas Dickey |
Subject: | Re: Avoiding clearing the screen |
Date: | Thu, 27 Dec 2007 11:52:48 -0500 (EST) |
On Thu, 27 Dec 2007, Christer Enfors wrote:
Thomas Dickey wrote:Looking at the code for 'refresh', I see the problem: if (win->_clear) { win->_clear = FALSE; newscr->_clear = TRUE; } ...which is telling it that if any window does wclear(), then the working window 'newscr' is cleared. If you use werase() you should get the expected resultAh, yes. That worked. Thanks.
no problem (I'll try to improve the documentation).It looks as if Solaris does the same thing (see the W_CLEAR_WINDOW symbol):
http://cvs.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libxcurses2/src/libc/xcurses/wrefresh.c -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net
[Prev in Thread] | Current Thread | [Next in Thread] |