conf/153164: termcap needs an entry for rxvt-unicode-256color
Frédéric Perrin
frederic.perrin+freebsd at resel.fr
Wed Dec 15 04:30:11 UTC 2010
>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 at 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 at 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:
More information about the freebsd-bugs
mailing list