[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Selective history search with arrow keys
From: |
Keith Goodman |
Subject: |
Re: Selective history search with arrow keys |
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 <address@hidden> wrote:
> On 22-Apr-2005, Keith Goodman <address@hidden> 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
>