From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23933 invoked from network); 8 Jun 2001 16:13:46 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 8 Jun 2001 16:13:46 -0000 Received: (qmail 4840 invoked by alias); 8 Jun 2001 16:13:25 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14812 Received: (qmail 4823 invoked from network); 8 Jun 2001 16:13:19 -0000 X-Authentication-Warning: candle.brasslantern.com: schaefer set sender to lantern@shell10.ba.best.com using -f From: "Bart Schaefer" Message-Id: <1010608161058.ZM2114@candle.brasslantern.com> Date: Fri, 8 Jun 2001 16:10:57 +0000 In-Reply-To: <000201c0efdb$80bf9790$21c9ca95@mow.siemens.ru> Comments: In reply to "Andrej Borsenkow" "RE: HP-UX 11.00 tgetenv dilemma" (Jun 8, 9:26am) References: <000201c0efdb$80bf9790$21c9ca95@mow.siemens.ru> X-Mailer: Z-Mail (5.0.0 30July97) To: "ZSH Workers Mailing List" Subject: Re: HP-UX 11.00 tgetenv dilemma MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jun 8, 9:26am, Andrej Borsenkow wrote: } } [Moved to zsh-workers] } } > 2. If the X-Open Standard is truely as HP claims, we can add } > another #ifdef block to the existing TGETENT_ACCEPTS_NULL to } > work with this situation. Then we link with -lcurses as the } > current configure script does. } } Pretty hard to figure out automatically. It actually shouldn't be all that difficult. (The TGETENT_ACCEPTS_NULL configure test is already going to be wrong for this case, BTW.) If we accept that "vt100" is sufficiently universal that it's guaranteed to exist, which the accepts-null test seems to imply, then we just have to do three tests: r1 = tgetent(buffer, "vt100") r2 = tgetent(buffer, "!@#$%^&*") r3 = tgetent(NULL, "vt100") If (r1 == -1) we can't access the terminfo directory and we should give up (bail out of configure with an error?). If (r2 == -1) then we have the wierd HP-UX-11-style tgetent(), because otherwise it ought to be == 0 (no cap file). If (r3 == r1) then TGETENT_ACCEPTS_NULL. } 3. Use setupterm if compiled with curses (or just if available) and tgetent } otherwise. The above problem should happen only on systems with terminfo and } setupterm must be there. Please refer to zsh-workers/14061 for my concerns about setupterm(). I still think it may be wrong even to call it from the terminfo module, and I don't know what we should do about use_env(). -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net