[Top][All Lists]

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

Re: how to tell ncurses to repaint buffer

From: Tobias Boege
Subject: Re: how to tell ncurses to repaint buffer
Date: Mon, 28 Apr 2014 15:45:02 +0200
User-agent: Mutt/1.5.22 (2013-10-16)

On Mon, 28 Apr 2014, Oliver wrote:
> Hi ncurses mailing list ... how do I get ncurses to repaint the whole
> buffer to the screen, ie not just the characters that have changed (like
> forcing it to do a integral frame in mpg lingo).
> As a bit of background, we are using ncurses in a slightly different way
> than normal. I have it outputting to a char driver for a really simple LCD
> so we can use the ncurses menu lib to make a nice little menu interface on
> our embedded product. This is all working quite well atm except for what
> seems to be a hardware glitch where the LCD gets out of sync with the
> driver, we can detect this and get back in sync, but we cannot undo the
> trash characters written while we were out of sync. So to "fix" the screen
> I just want ncurses to repaint the whole buffer as though the screen is in
> a blank random state like when the ncurses menu process starts, is this
> possible ?
> note this only happens very occasionally so I am not concerned about
> flickering effects.

Maybe redrawwin() or, more fine-grained, wtouchln() can help you. Their
man pages should tell you everything you need to know. I think you can
also use clearok().


"There's an old saying: Don't change anything... ever!" -- Mr. Monk

reply via email to

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