Date: Fri, 3 Oct 2003 11:15:34 +0300 From: Peter Pentchev <roam@ringlet.net> To: Gerald S Stoller <gs_stoller@juno.com> Cc: FreeBSD-doc@FreeBSD.ORG Subject: Re: color in messages Message-ID: <20031003081534.GF546@straylight.oblivion.bg> In-Reply-To: <20031003075518.GE546@straylight.oblivion.bg> References: <20031002.120620.-165803.0.GS_Stoller@juno.com> <20031003075518.GE546@straylight.oblivion.bg>
next in thread | previous in thread | raw e-mail | index | archive | help
--d01dLTUuW90fS44H Content-Type: text/plain; charset=windows-1251 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 03, 2003 at 10:55:18AM +0300, Peter Pentchev wrote: [snip] > The better, more portable way to do this would be to see if the OS (or > rather, its application libraries such as libc) supports the termcap > database - a unified database of information about the display > capabilities of a wide range of terminals. This is done using the > tgetent() and similar functions, described in the termcap(3) manual > page. The basic idea is that the database contains an entry for each of > the common (and some quite uncommon) terminal types as defined by the > TERM environment variable, so that the program knows whether the > terminal can e.g. change colors or move the cursor to a desired position > or change characters and so on, and what exactly is the character > sequence that will make it do so. For more information on the termcap > database, take a look at > <URL:http://www.cs.utah.edu/dept/old/texinfo/termcap/termcap_toc.html>. =2E..and, of course, the termcap(5) and termcap(3) manual pages :) G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@sbnd.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 If the meanings of 'true' and 'false' were switched, then this sentence wou= ldn't be false. --d01dLTUuW90fS44H Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/fTAm7Ri2jRYZRVMRAvTkAKDCJ+t7xK9z9NQ+vvf/s+8IpQqQWACeMUPQ qHGWgKe6waSSa8axVoB5H7I= =ugNQ -----END PGP SIGNATURE----- --d01dLTUuW90fS44H--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031003081534.GF546>