octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Selective history search with arrow keys


From: John W. Eaton
Subject: Selective history search with arrow keys
Date: Fri, 22 Apr 2005 16:23:36 -0400

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]