From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2796 invoked by alias); 9 May 2011 16:20:36 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 29201 Received: (qmail 21243 invoked from network); 9 May 2011 16:20:24 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at csr.com does not designate permitted sender hosts) Date: Mon, 9 May 2011 17:20:14 +0100 From: Peter Stephenson To: Subject: Re: patch to make $TERMINFO special Message-ID: <20110509172014.26217434@pwslap01u.europe.root.pri> In-Reply-To: <20110509155138.GA3073@lorien.comfychair.org> References: <20110508201312.GA5170@lorien.comfychair.org> <20110509121653.793dcd62@pwslap01u.europe.root.pri> <20110509155138.GA3073@lorien.comfychair.org> Organization: Cambridge Silicon Radio X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.103.11.49] X-Scanned-By: MailControl A_10_80_00 (www.mailcontrol.com) on 10.71.0.123 On Mon, 9 May 2011 08:51:38 -0700 Danek Duvall wrote: > > What problem is the addenv() call trying to fix? > > It didn't actually seem that TERMINFO was being set in my shell if I > didn't do that. In fact, I got the message > > can't find terminal definition for xterm-256color > > when I change $TERMINFO, and I get that with your patch as well. It > also just doesn't work -- colors are wrong, tput colors comes back > empty, as does echoti colors, and the terminal handling is absolutely > awful, just as if nothing had happened. You are remembering to export it from the shell ("export TERMINFO=...")? The shell doesn't do that by default and I don't think there's any good reason to make it do so --- every other variable that needs exporting you have to mark explicitly for export, unless it was imported. -- Peter Stephenson Software Engineer Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom