Date: Tue, 14 Dec 2010 22:21:34 +0100 From: =?utf-8?Q?Fr=C3=A9d=C3=A9ric_Perrin?= <frederic.perrin@resel.fr> To: freebsd-questions@freebsd.org Cc: Thomas Dickey <dickey@radix.net> Subject: Re: new termcap entry for rxvt-unicode-256color Message-ID: <87aak8m4o1.fsf@resel.fr> In-Reply-To: <20101213214317.GA28269@saltmine.radix.net> (Thomas Dickey's message of "Mon, 13 Dec 2010 16:43:17 -0500") References: <87vd2xogi1.fsf@resel.fr> <20101213161147.GB23305@libertas.local.camdensoftware.com> <20101213214317.GA28269@saltmine.radix.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87aak8m4o1.fsf>