From: "Mark E." To: djgpp-workers AT delorie DOT com Date: Wed, 8 Aug 2001 15:48:17 -0400 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: TIOCGWINSZ Message-ID: <3B715F41.11320.AFAD7F@localhost> In-reply-to: <3405-Wed08Aug2001220716+0300-eliz@is.elta.co.il> References: <3B71406B DOT 10414 DOT 373595 AT localhost> (snowball3 AT bigfoot DOT com) X-mailer: Pegasus Mail for Win32 (v3.12c) Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > Why does it assume that? What feature does it test to see if SIGWINCH > is supported? It doesn't test any feature. Just the configure flags --{enable,disable}- sigwinch. That flag sets USE_SIGWINCH. But curses.priv.h (included by ncurses files) undefines USE_SIGWINCH if HAVE_SIZECHANGE is undefined. HAVE_SIZECHANGE is set based on whether the TIOCGWINSZ (or similiar) feature is present. So now USE_SIGWINCH is on by default. It's mainly used in ncurses/tty/lib_tstp.c. I added a check for SIGWINCH and undefine USE_SIGWINCH if it isn't defined. > Isn't it easier to implement TIOCSWINSZ? ;-) _set_screen_lines > already has all the machinery, and this might be the right opportunity > to get it separated from the monstrous conio.c, so programs could call > it without pulling in all the rest. Works for me. Mark