conf/153164: termcap needs an entry for rxvt-unicode-256color

Frédéric Perrin frederic.perrin+freebsd at
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
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 15 04:30:10 UTC 2010
>Originator:     Frédéric Perrin
>Release:        8.1-RELEASE
root at papillon:/usr/obj/usr/src/share/termcap# uname -a
FreeBSD 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010     root at  i386

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.
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 ».
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:\
+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):\


More information about the freebsd-bugs mailing list