bug-ncurses
[Top][All Lists]
Advanced

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

Re: how to tell ncurses to repaint buffer


From: Thomas Dickey
Subject: Re: how to tell ncurses to repaint buffer
Date: Mon, 8 Jun 2015 05:00:25 -0400
User-agent: Mutt/1.5.20 (2009-06-14)

On Mon, Jun 08, 2015 at 12:59:51PM +1200, Oliver wrote:
> Thanks for the fix above Thomas, worked brilliantly.
> 
> I have recently had to come back to this issue though. I was wondering
> since I have written my own character driver and use newterm(...) to
> connect ncurses is there a return code (errno) I can use from my drivers
> write function that can tell ncurses the screen has become corrupt and
> ncurses should redraw the buffer (something like* ECONNRESET*). ATM I use a
> sysfs attribute as a side band communication to do this and poll it which
> is not that great.

no - ncurses cannot detect if the screen is corrupt.  It does repaint the
screen in certain cases (such as when calling refresh after endwin).

> Oliver Thane
> Mobile Phone: +64 (0)2102401831
> Email: address@hidden
> 
> On Tue, Apr 29, 2014 at 8:26 AM, Thomas Dickey <address@hidden> wrote:
> 
> > On Mon, Apr 28, 2014 at 01:07:57PM +1200, 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).
> >
> > wrefresh(curscr);

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

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