From owner-freebsd-questions@FreeBSD.ORG Tue Dec 14 21:41:16 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 004891065674 for ; Tue, 14 Dec 2010 21:41:15 +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 3D55A8FC0C for ; Tue, 14 Dec 2010 21:41:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by maisel-gw.enst-bretagne.fr (Postfix) with ESMTP id 660C019875; Tue, 14 Dec 2010 22:41:12 +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 a+RQxmUSVJr5; Tue, 14 Dec 2010 22:41:01 +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 2831619868; Tue, 14 Dec 2010 22:41:01 +0100 (CET) Received: by girafe.maisel.enst-bretagne.fr (Postfix, from userid 1000) id 1AAA8ED245; Tue, 14 Dec 2010 22:42:56 +0100 (CET) From: =?utf-8?Q?Fr=C3=A9d=C3=A9ric_Perrin?= To: FreeBSD Questions Organization: =?utf-8?Q?R=C3=A9seau?= des =?utf-8?B?w4lsw6h2ZXM=?= References: <87vd2xogi1.fsf@resel.fr> <20101213161147.GB23305@libertas.local.camdensoftware.com> <8762uwm4ln.fsf@resel.fr> Date: Tue, 14 Dec 2010 22:42:56 +0100 In-Reply-To: <8762uwm4ln.fsf@resel.fr> (=?utf-8?B?IkZyw6lkw6lyaWM=?= Perrin"'s message of "Tue, 14 Dec 2010 22:23:00 +0100") Message-ID: <871v5km3of.fsf@resel.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: Chip Camden 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:41:16 -0000 Le mardi 14 =C3=A0 22:23, Fr=C3=A9d=C3=A9ric Perrin a =C3=A9crit : > Le lundi 13 =C3=A0 17:11, Chip Camden a =C3=A9crit : >> 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). >>>=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 : >> >> Take a look at the termcap entry for rxvt-256color. It's actually based= on >> rxvt-unicode. So I think that all you need to add is: >> >> rxvt-unicode-256color|rxvt-unicode with 256 colors:\ >> :tc=3Drxvt-256color: > > I don't have an entry for rxvt-256color. > > This is happening on 8.1-RELEASE. Hum, of course I had the idea of looking at the SVN tree only after sending this post. This rxvt-256color definition was added a couple of weeks ago, by a certain Sterling Camden :-). So, I am now able to say that when adding the following entries to 8.1's termcap file, my terminal works as expected : rxvt-256color|rxvt terminal emulator with 256 colors:\ :Co#256:AF=3D\E[38;5;%dm:AB=3D\E[48;5;%dm:tc=3Drxvt-unicode: rxvt-unicode-256color|rxvt-unicode terminal with 256 colors (X Window Syste= m):\ :tc=3Drxvt-256color: (I even got 256 colors in a screen on a Linux machine accessed inside a tmux running on a FreeBSD machine.) Should I send a PR in order to get this new definition installed? --=20 Fred