Date: Wed, 15 Dec 2010 04:22:27 GMT From: Frédéric Perrin <frederic.perrin+freebsd@resel.fr> To: freebsd-gnats-submit@FreeBSD.org Subject: conf/153164: termcap needs an entry for rxvt-unicode-256color Message-ID: <201012150422.oBF4MRr6031550@red.freebsd.org> Resent-Message-ID: <201012150430.oBF4UAT5081936@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012150422.oBF4MRr6031550>
