From maintainers-request at octave dot org Fri Apr 22 15:51:53 2005 Subject: Re: Selective history search with arrow keys From: Keith Goodman To: "John W. Eaton" Cc: octave maintainers mailing list Date: Fri, 22 Apr 2005 15:40:52 -0500 I didn't word my question well. What I was trying to ask is if it is possible to make this a default feature in octave. If it's a default feature octave shouldn't touch the .inputrc file. On 4/22/05, John W. Eaton wrote: > On 22-Apr-2005, Keith Goodman wrote: > > | Is there a clean and simple way for octave to automatically configure > | readline (without changing the behavior of readline outside of octave) > | so that the up and down arrows search through history for matches to > | the characters already on the command line? > | > | If so, I think it would be a great addition to octave. > > Try adding > > $if Octave > "\e[A": history-search-backward > "\e[B": history-search-forward > $endif > > to your ~/.inputrc file. The "\e[A" and "\e[B" sequences should match > up/down arrow in an xterm window. You may need something else for > other terminals. > > jwe >