Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!WATSNEW.WATERLOO.EDU!andrewt From: andrewt@WATSNEW.WATERLOO.EDU (Andrew Thomas) Newsgroups: gnu.bash.bug Subject: Re: ^ word designator Message-ID: <8906141619.AA21327@watsnew.waterloo.edu> Date: 14 Jun 89 16:19:22 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 30 > > > >It would be nice if the key binding mechanism was able to cope with > >the escape sequences generated by arrow keys. > > The patches I posted added this capability. I talked to Brian about it, and > they might be in 1.00, though the way I did it isn't really "right" (I should > have used indirected keymaps to allow binding to multi-character strings, > but took the easy way out. Hey, it works for me.). I have been using bash since 0.87, and have never had a problem with binding the arrow keys. My arrow keys produce the following escape codes (vt220 terminal): up arrow ESC [ A down arrow ESC [ B right arrow ESC [ C left arrow ESC [ D my .inputrc looks like this: Meta-[: prefix-meta Meta-A: previous-history Meta-B: next-history Meta-C: forward-char Meta-D: backward-char I haven't figured out how to bind the vt220 function keys which generate sequences like 'ESC [ 1 7 ~' and 'ESC [ 1 8 ~'. It just occurred to me that this is what this discussion is really about. Andrew Thomas andrewt@watsnew.waterloo.edu Systems Design Eng. University of Waterloo