On Tue, 11 Nov 2008, J??rg Sommer wrote:

Package: ncurses-base
Version: 5.7-1
Severity: normal

Hi,

I'm in an XTerm (package version 237-1):

% echo $TERM
xterm
% infocmp -L G -Eo 'key_(home|end|up|down)=[^,]*'
key_down=\EOB
key_end=\EOF
key_home=\EOH
key_up=\EOA

but XTerm sends these sequences:

% read
^[[B^[[4~^[[1~^[[A

They match the sequences defined for the linux console and comply with
the recommend ???9.8. Keyboard configuration??? of the Debian Policy:

% infocmp -L linux G -Eo 'key_(home|end|up|down)=[^,]*'
key_down=\E[B
key_end=\E[4~
key_home=\E[1~
key_up=\E[A

So you should change the terminfo for xterm otherwise some programs might
not work, because they expect wrong key sequences read from the terminfo.

Actually the only impact I've seen is on bash users, who typically
hardcode their function key definitions.  (This is of interest only
to Linux users, since it would make it incompatible with everyone
else, so it's up to the package maintainer if he chooses to add
a nuisance).

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

Reply via email to