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: Johann Klammer
Subject: Re: how to tell ncurses to repaint buffer
Date: Tue, 09 Jun 2015 22:44:00 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Icedove/24.5.0

On 06/08/2015 02:59 AM, 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.
> 
> Thanks
> 
If your program is designed to handle KEY_RESIZE, you can try sending 
a SIGWINCH signal to the process to trigger the redrawing. 





reply via email to

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