From owner-freebsd-bugs@FreeBSD.ORG Wed Dec 15 04:30:11 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0FC7A106566C for ; Wed, 15 Dec 2010 04:30:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DAFAF8FC12 for ; Wed, 15 Dec 2010 04:30:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oBF4UAHn081938 for ; Wed, 15 Dec 2010 04:30:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oBF4UAT5081936; Wed, 15 Dec 2010 04:30:10 GMT (envelope-from gnats) Resent-Date: Wed, 15 Dec 2010 04:30:10 GMT Resent-Message-Id: <201012150430.oBF4UAT5081936@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Frédéric Perrin Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F33E9106566B for ; Wed, 15 Dec 2010 04:22:27 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (unknown [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id E18F38FC14 for ; Wed, 15 Dec 2010 04:22:27 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id oBF4MRoi031551 for ; Wed, 15 Dec 2010 04:22:27 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id oBF4MRr6031550; Wed, 15 Dec 2010 04:22:27 GMT (envelope-from nobody) Message-Id: <201012150422.oBF4MRr6031550@red.freebsd.org> Date: Wed, 15 Dec 2010 04:22:27 GMT From: Frédéric Perrin To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: conf/153164: termcap needs an entry for rxvt-unicode-256color X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Dec 2010 04:30:11 -0000 >Number: 153164 >Category: conf >Synopsis: termcap needs an entry for rxvt-unicode-256color >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Dec 15 04:30:10 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Frédéric Perrin >Release: 8.1-RELEASE >Organization: >Environment: root@papillon:/usr/obj/usr/src/share/termcap# uname -a FreeBSD papillon.fperrin.net 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: Hello, 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). This results in slightly incorrect colors, and some programs like vi(1) refusing to work. After a short discussion[1] with Chip Camden, it appears that rxvt-unicode-256color needs the same definition as rxvt-256color. The attached patch (against HEAD) installs this definition. http://thread.gmane.org/gmane.os.freebsd.questions/272566 >How-To-Repeat: Install rxvt-unicode version 9.09. Check that $TERM is rxvt-unicode-256color, and that the terminal can indeed display 256 colors. Log into a FreeBSD system. If the shell is zsh(1), observe that backspace only outputs a space, and that ^U doesn't erase the line. Use vi(1) to edit a file, observe that it fails with « vi: No terminal database found ». >Fix: Apply the attached patch (again, against HEAD, not against 8.1-RELEASE) to usr/share/misc/termcap, and run cap_mkdb. Patch attached with submission follows: --- termcap.orig 2010-12-15 05:06:16.000000000 +0100 +++ termcap 2010-12-15 05:09:49.000000000 +0100 @@ -4587,6 +4587,9 @@ rxvt-256color|rxvt terminal emulator with 256 colors:\ :Co#256:AF=\E[38;5;%dm:AB=\E[48;5;%dm:tc=rxvt-unicode: +rxvt-unicode-256color|rxvt-unicode terminal with 256 colors (X Window System):\ + :tc=rxvt-256color: + # Termcap entry for Eterm, taken from the sources of Eterm-0.9.2 Eterm|Eterm Terminal Emulator (X11 Window System):\ :am:bw:eo:km:mi:ms:xn:xo:\ >Release-Note: >Audit-Trail: >Unformatted: