let's take a look at keybinding and keyboard output from termial You could check yours with ^V-keystroke (pressing ctrl-v then press the key)
in linux-console H = ^[[1~, E = ^[[4~, BS = ^?, del = ^[[3~ for X, debian has a policy that BS should produce ^? and del ^[[3~ so that it's compatible with linux-console xterm H = ^[OH, E = ^[OF Eterm H = ^[[1~, E = ^[[4~ To bind key to shell, bash uses inputrc, zsh uses bindkey, tcsh uses bindkey. Check these man pages for more info. Chanop -- -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GE d? s+: a- C++ UL++ P+ L+++ E- W++ N++ o-- K- w--- O- M+ V-- PS PE++ Y PGP++ t+ 5++ X+ R tv+++ b++ DI+ D- G e+++ h* r+ y+ ------END GEEK CODE BLOCK------