From owner-freebsd-questions@FreeBSD.ORG Wed Apr 21 16:41:15 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A0AC106567D for ; Wed, 21 Apr 2010 16:41:15 +0000 (UTC) (envelope-from carlj@peak.org) Received: from redcondor2.peak.org (redcondor2.peak.org [69.59.192.56]) by mx1.freebsd.org (Postfix) with ESMTP id 614888FC0C for ; Wed, 21 Apr 2010 16:41:14 +0000 (UTC) Received: from peak-mail-gateway.peak.org ([69.59.192.42]) by redcondor2.peak.org ({e8dac926-1ec8-47e6-b410-31008b345fb7}) via TCP (outbound) with ESMTP id 20100421164113690 for ; Wed, 21 Apr 2010 16:41:13 +0000 X-RC-FROM: X-RC-RCPT: Received: from cjlinux.localnet (207.55.91.197.peak.org [207.55.91.197] (may be forged)) (authenticated bits=0) by peak-mail-gateway.peak.org (8.12.10/8.12.8) with ESMTP id o3LGfBZm091807 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Wed, 21 Apr 2010 09:41:13 -0700 (PDT) Received: from carlj by cjlinux.localnet with local (Exim 4.69) (envelope-from ) id 1O4cz9-0008EG-K7 for freebsd-questions@freebsd.org; Wed, 21 Apr 2010 09:41:11 -0700 To: freebsd-questions@freebsd.org References: <19407.1754.183540.932540@jerusalem.litteratus.org> From: Carl Johnson Date: Wed, 21 Apr 2010 09:41:11 -0700 In-Reply-To: <19407.1754.183540.932540@jerusalem.litteratus.org> (Robert Huff's message of "Wed\, 21 Apr 2010 10\:08\:26 -0400") Message-ID: <87d3xsyd08.fsf@cjlinux.localnet> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: parsing terminfo entries X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Apr 2010 16:41:15 -0000 Robert Huff writes: > Other than curses, is there a library that will let me parse a > terminfo string? I.e. ask for the value of a particular setting? I don't know of any way to parse it, but have you looked at tput(1)? It will give the value of termcap or terminfo attributes for any terminal type that you specify. -- Carl Johnson carlj@peak.org