bug-ncurses
[Top][All Lists]
Advanced

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

Re: Resizing The Terminal Window


From: Thomas Dickey
Subject: Re: Resizing The Terminal Window
Date: Sat, 4 Aug 2001 18:23:16 -0400
User-agent: Mutt/1.2.5i

On Sat, Aug 04, 2001 at 04:58:16PM -0400, Michael B. Allen wrote:
> I'm trying to hone the resizing process so I've written a minimal
> application derived from test/view.c to illustrate it. I have been
> stuggling to find information on the topic so I would greatly appriciate
> it if you could verify that the below code is indeed optimal and portable
> (e.g. are all the conditional includes necessary?).

well, in view.c I keep in mind that POSIX says I can't do buffered I/O
in a signal handler.  That's a portability gotcha that has bitten me
a couple of times (the library doesn't do this, but the example does).
The endwin() call would be buffered, and there's a possibility that the
program would break.

-- 
Thomas E. Dickey <address@hidden>
http://dickey.his.com
ftp://dickey.his.com



reply via email to

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