From owner-freebsd-questions@FreeBSD.ORG Wed Apr 21 16:51:21 2010 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0592F106566B for ; Wed, 21 Apr 2010 16:51:21 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout029.mac.com (asmtpout029.mac.com [17.148.16.104]) by mx1.freebsd.org (Postfix) with ESMTP id E54828FC0A for ; Wed, 21 Apr 2010 16:51:20 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii Received: from cswiger1.apple.com ([17.209.4.71]) by asmtp029.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0L1800KBHK4P1050@asmtp029.mac.com> for questions@freebsd.org; Wed, 21 Apr 2010 09:51:11 -0700 (PDT) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-1004210154 From: Chuck Swiger In-reply-to: <19407.1754.183540.932540@jerusalem.litteratus.org> Date: Wed, 21 Apr 2010 09:50:48 -0700 Message-id: <426A2EB5-63FF-4FA4-BF7E-48492C4BC47C@mac.com> References: <19407.1754.183540.932540@jerusalem.litteratus.org> To: Robert Huff X-Mailer: Apple Mail (2.1078) Cc: questions@freebsd.org 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:51:21 -0000 Hi-- On Apr 21, 2010, at 7:08 AM, Robert Huff wrote: > 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? There is/was a compatibility layer called termcap which has things like tgetent(), tputs(), etc. You should be able to link that /usr/lib/libtermcap.a (or .so) in instead of libcurses, although it might just be a nickname for libcurses nowadays on FreeBSD. Regards, -- -Chuck