From owner-freebsd-questions@FreeBSD.ORG Thu Dec 7 08:11:25 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8801916A412 for ; Thu, 7 Dec 2006 08:11:25 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [199.26.172.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05BAF43CB0 for ; Thu, 7 Dec 2006 08:10:33 +0000 (GMT) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id kB78BLZD002817 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 7 Dec 2006 00:11:22 -0800 (PST) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id kB78BLFn002815 for freebsd-questions@freebsd.org; Thu, 7 Dec 2006 00:11:21 -0800 (PST) Received: from fbsd61 ([192.168.200.61]) by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA26512; Thu, 7 Dec 06 00:08:45 PST Date: Thu, 07 Dec 2006 00:10:28 -0800 From: perryh@pluto.rain.com To: freebsd-questions@freebsd.org Message-Id: <4577cc74.kwhh6bfTmGA1t57c%perryh@pluto.rain.com> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: extracting strings from terminfo 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: Thu, 07 Dec 2006 08:11:25 -0000 I have a C program which currently does not use any terminal control facilities. I don't want to make it into a full-screen application, or anything close, but I would like to extract the bold and sgr0 terminfo strings (or the md and me termcap strings, if on a system too ancient to have terminfo) so as to render the occasional word in bold. What is the best way to go about this? Everything I've found so far is written from the perspective of either writing termcap/info entries for new terminal types, or writing full-screen applications.