From owner-freebsd-questions@FreeBSD.ORG Tue Dec 14 21:19:53 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 4D20D1065670 for ; Tue, 14 Dec 2010 21:19:53 +0000 (UTC) (envelope-from frederic.perrin@resel.fr) Received: from maisel-gw.enst-bretagne.fr (maisel-gw.enst-bretagne.fr [192.44.76.8]) by mx1.freebsd.org (Postfix) with ESMTP id 98FB98FC14 for ; Tue, 14 Dec 2010 21:19:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by maisel-gw.enst-bretagne.fr (Postfix) with ESMTP id 755E319869; Tue, 14 Dec 2010 22:19:49 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at resel.fr Received: from maisel-gw.enst-bretagne.fr ([127.0.0.1]) by localhost (mercure.adm.maisel.enst-bretagne.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5gmn19EM1zCx; Tue, 14 Dec 2010 22:19:40 +0100 (CET) Received: from girafe.maisel.enst-bretagne.fr (girafe.maisel.rennes.enst-bretagne.fr [172.23.206.119]) (Authenticated sender: fperrin) by maisel-gw.enst-bretagne.fr (Postfix) with ESMTPSA id 0981819868; Tue, 14 Dec 2010 22:19:39 +0100 (CET) Received: by girafe.maisel.enst-bretagne.fr (Postfix, from userid 1000) id BBF52ED245; Tue, 14 Dec 2010 22:21:34 +0100 (CET) From: =?utf-8?Q?Fr=C3=A9d=C3=A9ric_Perrin?= To: freebsd-questions@freebsd.org Organization: =?utf-8?Q?R=C3=A9seau?= des =?utf-8?B?w4lsw6h2ZXM=?= References: <87vd2xogi1.fsf@resel.fr> <20101213161147.GB23305@libertas.local.camdensoftware.com> <20101213214317.GA28269@saltmine.radix.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:BaNxH44qxrV2M7LJko0+hKUIbc4= Date: Tue, 14 Dec 2010 22:21:34 +0100 In-Reply-To: <20101213214317.GA28269@saltmine.radix.net> (Thomas Dickey's message of "Mon, 13 Dec 2010 16:43:17 -0500") Message-ID: <87aak8m4o1.fsf@resel.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: Thomas Dickey 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: Tue, 14 Dec 2010 21:19:53 -0000 Le lundi 13 =C3=A0 22:43, Thomas Dickey a =C3=A9crit : > On Mon, Dec 13, 2010 at 08:11:47AM -0800, Chip Camden wrote: >> Quoth Fr=C3=A9d=C3=A9ric Perrin on Monday, 13 December 2010: >>> 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). > > 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@: I'm not sure I understand what you mean by "the corresponding expression doesn't map to termcap". Do you mean that FreeBSD's curses library need to be patched to handle 256 colors ? (using 8.1 RELEASE here; ncurses is version 5.7.20081102). However, both Co and pa are documented in termcap(5) as being the number of colors and bg/fg pairs. In addition, I added the following to my termcap file : rxvt-unicode-256color|rxvt-unicode terminal with 256 colors (X Window Syste= m):\ :cc:Co#256:pa#32767:tc=3Drxvt-unicode: When running [1], I do get 256 colors. However, tmux is in black & white (actually, it already was, unless run with something like TERM=3Dxterm-16color tmux new ; but we don't want to lie about $TERM, do we?). [1] http://www.frexx.de/xterm-256-notes/data/256colors2.pl --=20 Fred