From owner-freebsd-questions@FreeBSD.ORG Mon Dec 13 22:01:47 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 89C821065673 for ; Mon, 13 Dec 2010 22:01:47 +0000 (UTC) (envelope-from dickey@saltmine.radix.net) Received: from saltmine.radix.net (saltmine.radix.net [207.192.128.40]) by mx1.freebsd.org (Postfix) with ESMTP id 2D8A48FC13 for ; Mon, 13 Dec 2010 22:01:46 +0000 (UTC) Received: from saltmine.radix.net (localhost [127.0.0.1]) by saltmine.radix.net (8.12.2/8.12.2) with ESMTP id oBDLhISa029168 for ; Mon, 13 Dec 2010 16:43:18 -0500 (EST) Received: (from dickey@localhost) by saltmine.radix.net (8.12.2/8.12.2/Submit) id oBDLhHPI029167 for freebsd-questions@freebsd.org; Mon, 13 Dec 2010 16:43:17 -0500 (EST) Date: Mon, 13 Dec 2010 16:43:17 -0500 From: Thomas Dickey To: freebsd-questions@freebsd.org Message-ID: <20101213214317.GA28269@saltmine.radix.net> References: <87vd2xogi1.fsf@resel.fr> <20101213161147.GB23305@libertas.local.camdensoftware.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="r5Pyd7+fXNt84Ff3" Content-Disposition: inline In-Reply-To: <20101213161147.GB23305@libertas.local.camdensoftware.com> User-Agent: Mutt/1.3.27i Subject: Re: new termcap entry for rxvt-unicode-256color 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: Mon, 13 Dec 2010 22:01:47 -0000 --r5Pyd7+fXNt84Ff3 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 13, 2010 at 08:11:47AM -0800, Chip Camden wrote: > Quoth Fr=E9d=E9ric Perrin on Monday, 13 December 2010: > > Hello, > >=20 > > rxvt-unicode version 9.09 was released last month. It added support for > > 256 colors in the default configuration, and the default value of $TERM > > changed to rxvt-unicode-256color (from rxvt-unicode). > >=20 > > This results in slightly incorrect colors, and some programs like vi(1) > > refuse to work. It is my understanding that I should update > > /usr/share/misc/termcap. The diff between rxvt-unicode and > > rxvt-unicode-256color seems rather short; on a Linux machine, I have : > >=20 > > girafe:~% infocmp -d rxvt-unicode rxvt-unicode-256color > > comparing rxvt-unicode to rxvt-unicode-256color. > > comparing booleans. > > comparing numbers. > > colors: 88, 256. > > pairs: 7744, 32767. > > comparing strings. > >=20 > > However, I don't how how to update the termcap file. From my > > understanding of the manpage, the following command should give me the > > necessary information : > >=20 > > girafe:~% infocmp -C -u rxvt-unicode-256color rxvt-unicode > > rxvt-unicode-256color|rxvt-unicode terminal with 256 colors (X Window S= ystem):\ > > :tc=3Drxvt-unicode: > >=20 > > As you see, their is no mention of the 256-color capabilities, this > > doesn't seem correct. How do I update the termcap file ? The 256-colors aren't shown since the corresponding terminfo expression doesn't map to termcap. (I added a workaround recently in ncurses to recognize this special case). For example xterm+256color|xterm 256-color feature:\ :cc:\ :Co#256:pa#32767:\ :AB=3D\E[48;5;%dm:AF=3D\E[38;5;%dm:Sb@:Sf@: --=20 Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net --r5Pyd7+fXNt84Ff3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (SunOS) Comment: For info see http://www.gnupg.org iD8DBQFNBpNItIqByHxlDocRAg7wAJ9ITgX0jobUFbkyZA+6wxer1Tlo2wCfYVDg 7PyaekGHRQxBlsxPu9wkllI= =1aOI -----END PGP SIGNATURE----- --r5Pyd7+fXNt84Ff3--