[wellylug] Bash key bindings

Darryl Hamilton wellylug at addict.net.nz
Mon Feb 20 08:55:14 NZDT 2006


David Antliff wrote:
> 
> 
> On Sat, 18 Feb 2006, Grant McLean wrote:
>>> What $TERM gets set for you? (if you use Gnome and its terminal)
> 
> My $TERM is 'rxvt' and I'm using aterm-0.4.2-r11 (Gentoo). Doesn't work
> in xterm (just prints ;5D;5D;5D etc). I'm not using Gnome or Gnome
> Terminal.
> 
> I use the same inputrc on Debian too it works in an rxvt terminal but
> not in an xterm (i.e. same as Gentoo).

Well, I figured it out - copied the values from /etc/inputrc from the
Redhat system and it works fine. Seems keycodes are case sensitive too :)

"\e[5D": backward-word
"\e[5C": forward-word

(I tried this with a lowercase d and c and it doesn't work)

The mysql cli client is doing the same thing, but that's a different
thread (though I think it's using the readline library as well).

D.




More information about the wellylug mailing list