From owner-freebsd-questions@FreeBSD.ORG Fri Nov 25 13:19:32 2011 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 E9B22106566B for ; Fri, 25 Nov 2011 13:19:31 +0000 (UTC) (envelope-from tom@invisible-island.net) Received: from vms173007pub.verizon.net (vms173007pub.verizon.net [206.46.173.7]) by mx1.freebsd.org (Postfix) with ESMTP id BCCAD8FC16 for ; Fri, 25 Nov 2011 13:19:31 +0000 (UTC) Received: from par-debian50-32.invisible-island.net ([unknown] [96.241.212.238]) by vms173007.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LV700L6ZX04COY2@vms173007.mailsrvcs.net> for freebsd-questions@freebsd.org; Fri, 25 Nov 2011 07:19:20 -0600 (CST) Received: from par-debian50-32.invisible-island.net (localhost [127.0.0.1]) by par-debian50-32.invisible-island.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pAPDJFM6007277 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 25 Nov 2011 08:19:15 -0500 Received: (from tom@localhost) by par-debian50-32.invisible-island.net (8.14.3/8.14.3/Submit) id pAPDJFOZ007275 for freebsd-questions@freebsd.org; Fri, 25 Nov 2011 08:19:15 -0500 Date: Fri, 25 Nov 2011 08:19:15 -0500 From: Thomas Dickey To: freebsd-questions@freebsd.org Message-id: <20111125131915.GA5966@debian50-32.invisible-island.net> References: <20111125105901.GK16096@barfooze.de> <20111125113718.GA4064@debian50-32.invisible-island.net> <20111125120215.GL16096@barfooze.de> MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=KsGdsel6WgEHnImy Content-disposition: inline In-reply-to: <20111125120215.GL16096@barfooze.de> User-Agent: Mutt/1.5.18 (2008-05-17) Subject: Re: No colours at all with ncurses and urxvt on FreeBSD 9.0-RC2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dickey@his.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Nov 2011 13:19:32 -0000 --KsGdsel6WgEHnImy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 25, 2011 at 01:02:15PM +0100, Moritz Wilhelmy wrote: > On Fri, Nov 25, 2011 at 06:37:18 -0500, Thomas Dickey wrote: > > On Fri, Nov 25, 2011 at 11:59:01AM +0100, Moritz Wilhelmy wrote: > > > I can't get colours to work with urxvt (the "normal" urxvt, that is, = not > > > the 256-color one) over ssh. Google doesn't come up with any usable > > > results for this particular case.. What bothers me is that a termcap > > > entry for "rxvt-unicode" is present on the termcap file FreeBSD came > > > with. I'm really clueless here, can someone give me a hint? > >=20 > > setting TERM to rxvt-256color looks like the way to fix that issue. >=20 > Indeed, setting TERM to either "rxvt-256color" or "rxvt" gives me > colours. The remaining question is, why doesn't it work with > "rxvt-unicode", which is also in the termcap file? well... rxvt-unicode-256color was the effect of the checkins for termcap.src for conf/152713 and conf/153164 The earlier one suggests that the naming came from rxvt-unicode's sources. Checking that, it seems that the rxvt-unicode entry specifies 88 colors, while the rxvt-unicode-256color entry (close to rxvt-256color) does 256. However, the rxvt-unicode entry in FreeBSD was added for conf/117323, which equated it to rxvt-mono (no color), with some changes for function-ke= ys. On the other hand, the rxvt entry uses color, which was overlooked in conf/117323: # Termcap entry for rxvt-unicode, taken from http://cvs.schmorp.de/rxvt-uni= code/doc/rxvt.7.html#I_need_a_termcap_file_entry rxvt-unicode|rxvt-unicode terminal (X Window System):\ :SF=3D\E[%dS:SR=3D\E[%dT:bw:ec=3D\E[%dX:kb=3D\177:kd=3D\EOB:ke=3D\E[?1l\E>= :\ :kl=3D\EOD:kr=3D\EOC:ks=3D\E[?1h\E=3D:ku=3D\EOA:lm#0:te=3D\E[r\E[?1049l:\ :ti=3D\E[?1049h:tc=3Drxvt-mono: rxvt|rxvt terminal emulator (X Window System):\ :pa#64:Co#8:AF=3D\E[3%dm:AB=3D\E[4%dm:op=3D\E[39;49m:tc=3Drxvt-mono: Following the clue from the comment, the example using no color was present in rxvt.7 until it was removed in version 9.05 of rxvt-unicode. The current documentation contains no examples (the termcap/terminfo are only separate files). --=20 Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net --KsGdsel6WgEHnImy Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAk7PldMACgkQcCNT4PfkjtvPygCgqQu5IDLb78qM7Mau/w9Xu1h6 arwAoJWcpGfUcFiSLfI0heMHozjbMCHv =uL+Q -----END PGP SIGNATURE----- --KsGdsel6WgEHnImy--