From owner-freebsd-doc@FreeBSD.ORG Fri Oct 3 01:15:40 2003 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03EB216A4B3 for ; Fri, 3 Oct 2003 01:15:39 -0700 (PDT) Received: from gandalf.online.bg (gandalf.online.bg [217.75.128.9]) by mx1.FreeBSD.org (Postfix) with SMTP id 53E1743FFB for ; Fri, 3 Oct 2003 01:15:38 -0700 (PDT) (envelope-from roam@ringlet.net) Received: (qmail 10426 invoked from network); 3 Oct 2003 08:15:31 -0000 Received: from office.sbnd.net (HELO straylight.ringlet.net) (217.75.140.130) by gandalf.online.bg with SMTP; 3 Oct 2003 08:15:31 -0000 Received: (qmail 22647 invoked by uid 1000); 3 Oct 2003 08:15:34 -0000 Date: Fri, 3 Oct 2003 11:15:34 +0300 From: Peter Pentchev To: Gerald S Stoller Message-ID: <20031003081534.GF546@straylight.oblivion.bg> Mail-Followup-To: Gerald S Stoller , FreeBSD-doc@FreeBSD.ORG References: <20031002.120620.-165803.0.GS_Stoller@juno.com> <20031003075518.GE546@straylight.oblivion.bg> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="d01dLTUuW90fS44H" Content-Disposition: inline In-Reply-To: <20031003075518.GE546@straylight.oblivion.bg> User-Agent: Mutt/1.5.4i cc: FreeBSD-doc@FreeBSD.ORG Subject: Re: color in messages X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Oct 2003 08:15:40 -0000 --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 > . =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--