Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!apple!ames!uakari.primate.wisc.edu!ark1!dtix!mimsy!mimsy.umd.edu!mpf From: mpf@triplea.cs.umd.edu (Martin Farach) Newsgroups: gnu.bash.bug Subject: Novice question on binding keys Message-ID: Date: 9 Sep 89 18:01:00 GMT Sender: nobody@mimsy.UUCP Distribution: gnu Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 58 Sorry for posting this message on a newsgroup that is set up for bug reporting but I didn't know where else to post. I use tcsh and have my arrow keys set to do the expected things. I just started using bash and I tried getting the same behaviour. I tried the following .inputrc: M-O: prefix-meta M-A: previous-history M-B: next-history M-C: forward-char M-D: backward-char as well as : M-OA: previous-history M-OB: next-history etc. and M-O-A: previous-history and every other combination I could think of. The weird thing is that if I type ESC-O-A manually, I get the behaviour I want. If I hit the up-arrow key, I get an A inserted into the line. Is there a way to get the desired behaviour? (bash-1.03, bison, gcc, sun3, vt100 terminal). Also, can user defined functions be bound to keys? Finally, can key bindings be changed on the fly rather than by changing .inputrc and then starting up a new bash? Thanks for you help. ******************************************************************************* * Martin Farach | * * University of Maryland | * * Department of Computer Science | * * College Park, Maryland 20742 | * * | * * also know as: | * * mpf@brillig.umd.edu | * ******************************************************************************* -- ******************************************************************************* * Martin Farach | * * University of Maryland | * * Department of Computer Science | * * College Park, Maryland 20742 | * * | * * also know as: | * * mpf@brillig.umd.edu | * *******************************************************************************