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: Wed, 10 Jun 2015 19:37:42 -0400
User-agent: Mutt/1.5.20 (2009-06-14)

On Tue, Jun 09, 2015 at 10:44:00PM +0200, Johann Klammer wrote:
> 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. 

I have the impression that he was asking about things such as repainting
the screen if some external process wrote on the screen.

-- 
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]