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: Oliver
Subject: Re: how to tell ncurses to repaint buffer
Date: Mon, 8 Jun 2015 12:59:51 +1200

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.

Thanks


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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAlNeuXAACgkQcCNT4PfkjtsL8ACfQvzESJkVtaA/a7xHPZN5eo4R
MawAn3cLY3Mz3/dmk7wSiKwg9atAYHSb
=Ns0E
-----END PGP SIGNATURE-----



reply via email to

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