Package: ncurses-base
Version: 5.9-4
Hi,
When building terminfo files in debian/rules, they are built with the -x option:
for ti in xterm hurd rxvt rxvt-unicode; do \
TERMINFO=$(fulltempdir)/usr/share/terminfo \
tic -x debian/$$ti.ti; \
done
This option causes unknown capabilities to be treated as user-defined,
this means that they get included even if tic doesn't know about them.
In the case of xterm (and some xterm derivatives, like
xterm-256color), this means that memu and meml are included.
Decompiling the file and then recompiling it without -x causes these
two options to go away.
One direct consequence of this "-x" is that when opening emacs in the
console (i.e. running emacs -nw in a gnome-terminal or xterm, with
TERM=xterm or xterm-256color) shift-up doesn't work. In this case,
emacs shows: <select> is undefined.
There have been a number of people encountering this issue, although
surprisingly, I found no other bug reports:
http://stackoverflow.com/questions/10871745/shift-up-arrow-doesnt-highlight-text-emacs-iterm2
http://lists.gnu.org/archive/html/help-gnu-emacs/2011-05/msg00211.html
http://forums.vandyke.com/showpost.php?p=26580&postcount=25
The workaround for the problem is to decompile the default file,
recompile it with tic and no options, and replace the old one with the
new one. Another workaround is to use xterm-vt220, which is not
affected, but I'm not sure why.
I'm not sure of the best way of fixing this. Either the obsolete keys
shouldn't be included in the terminfo file, or the tic call should be
done without -x. I'm leaning towards the second, but I don't have
enough knowledge of the package to be certain about it.
--
Regards,
Marga
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]