Date: Mon, 13 Aug 2001 12:58:25 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: "Mark E." Message-Id: <4634-Mon13Aug2001125825+0300-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9 CC: djgpp-workers AT delorie DOT com In-reply-to: <3B7273C0.26572.48D83B@localhost> (snowball3@bigfoot.com) Subject: Re: TIOCGWINSIZE idea References: <3B7189D1 DOT 14369 DOT 5D0609 AT localhost> <3B7273C0 DOT 26572 DOT 48D83B AT localhost> 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 > From: "Mark E." > Date: Thu, 9 Aug 2001 11:28:00 -0400 > > > I think it's okay to initialize termios in a static constructor, but > > if none of the termios functions are called by the application, how > > are we gonna make sure termios functions, including the initializer, > > get linked into the executable in the first place? > > In the case of ncurses, it does use termios but it may or may not be called > depending on the code path. Since the library uses the termios emulation in > some place, the termios emulation will be included in any exe using ncurses. Which librray do you refer to here? Is it the ncurses library? What I wrote was a general remark: if the old-style initialization didn't work because termios functions were not referenced, the same problem will happen with a static constructor.