old/unupdated xterm entries in termcap db
ltsampros at upnet.gr
Tue Dec 8 23:43:23 UTC 2009
Recently, I tried to enable/configure 256 color support under xterm
(and/or other terminal emulators). The application for which I wanted
256 color support is emacs (although this does not matter). Normally,
all I'd have to do to get this done is:
Of course, this didn't work because the termcap file installed had the
xterm-256color|xterm alias 3:tc=xterm-xfree86:
which points to xterm-xfree86, which in turn points to xterm-basic. This
last entry (if you look at the termcap file) has 8 colors defined. (I
think the parameter in question is 'Co' but I guess other parameters are
needed as well). The above stands true about xterm-16color and
After searching a bit, I noticed that xterm entries in FreeBSD's termcap
file were copied directly from the termcap file that ships with xterm
(but most probably from a very old xterm version). So, I removed all the
related entries (lines 2932 to 3090) and I inserted at their place an
exact copy of the contents of the termcap that ships with xterm-251.
This seems to work correctly for me, and I managed to get 256 color
support. However, I have not done any extensive testing for the other
changed/updated entries that this change brought.
Attached you can find a patch for share/termcap/termcap.src.
Why aren't these entries updated in order to match the
ones that ship with xterm? Am I missing something?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 13171 bytes
Desc: sync termcap with xterm-251
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20091208/f5ade147/updated-termcap.bin
More information about the freebsd-hackers