bug-ncurses
[Top][All Lists]
Advanced

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

Re: wclear forces complete screenredraw?


From: Folkert van Heusden
Subject: Re: wclear forces complete screenredraw?
Date: Wed, 5 May 2004 18:34:09 +0200 (CEST)

> > I wrote a program which has aprox 6 windows on the terminal.
> > When I do a wclear on 1 (!) window which consists of 1 vertical line,
> > it seems ncurses refreshes the *whole* terminal! What can I do to prevent
> > this? It slows my program considerably down on slow links.
>
> don't use wclear(), use werase()! wclear() calls clearok (indirectly) so
> the whole screen gets redrawn on wrefresh().

Aha! Ok, thanks!

Is there somewhere a document which describes how to write optimal
programs using ncurses? E.g. that it is as fast as possible?

NEW QUESTION: what does leaveok do? It is mentioned in the header of a
man-page but not described.


Folkert van Heusden

+--------------------------------------------------------------------------+
| UNIX sysop? Then give MultiTail ( http://www.vanheusden.com/multitail/ ) |
| a try, it brings monitoring logfiles (and such) to a different level!    |
+---------------------------------------------------= www.vanheusden.com =-+





reply via email to

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