Date: Thu, 07 Dec 2006 00:10:28 -0800 From: perryh@pluto.rain.com To: freebsd-questions@freebsd.org Subject: extracting strings from terminfo Message-ID: <4577cc74.kwhh6bfTmGA1t57c%perryh@pluto.rain.com>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4577cc74.kwhh6bfTmGA1t57c%perryh>