[gnu.bash.bug] Arrow key bindings

spa@fctunl.rccn.pt (Salvador Pinto Abreu) (02/09/90)

I remember reading an article on this newsgroup about someone who had
succeeded in binding the VT100 arrow keys (ESC-[-A et al.) to perform
the action of ^P, ^N, ^F and ^B.

How is this done, exactly?
---
Salvador Pinto Abreu	              BITNET/Internet: spa@fctunl.rccn.pt

mikem+@ANDREW.CMU.EDU (Michael Meyer) (02/11/90)

Using bash 1.04, the following .inputrc file will bind the vt100 arrow keys.
--Mike
"\M-[A": previous-history
"\M-[B": next-history
"\M-[C": forward-char
"\M-[D": backward-char