bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Avoiding clearing the screen


From: Thomas Dickey
Subject: Re: Avoiding clearing the screen
Date: Mon, 24 Dec 2007 11:56:58 -0500 (EST)

On Mon, 24 Dec 2007, Dan Nelson wrote:

...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 result.

This is also documented in the wclear/wearse manpage:

      The clear and wclear routines are like erase and werase, but
      they also call clearok, so that the screen is cleared completely
      on the next call to wrefresh for that window and repainted from
      scratch.

yes - but - clearok() takes a window-parameter, and could conceivably
not repaint the whole screen. (I recall vaguely some long-ago discussion here, so it's too soon to say whether it's a bug or a wart such as leaveok).

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]