Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Dec 2010 22:42:56 +0100
From:      =?utf-8?Q?Fr=C3=A9d=C3=A9ric_Perrin?= <frederic.perrin@resel.fr>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Cc:        Chip Camden <sterling@camdensoftware.com>
Subject:   Re: new termcap entry for rxvt-unicode-256color
Message-ID:  <871v5km3of.fsf@resel.fr>
In-Reply-To: <8762uwm4ln.fsf@resel.fr> (=?utf-8?B?IkZyw6lkw6lyaWM=?= Perrin"'s message of "Tue, 14 Dec 2010 22:23:00 %2B0100")
References:  <87vd2xogi1.fsf@resel.fr> <20101213161147.GB23305@libertas.local.camdensoftware.com> <8762uwm4ln.fsf@resel.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?871v5km3of.fsf>