Yup, that's it.  Thanx.  Cool tricks

and

"\M-[B":        history-search-forward

for down arrow to search history forward

Edwin Lau

On Wed, Dec 18, 2002 at 03:27:42PM +0100, Michael Naumann wrote:
> On Wednesday 18 December 2002 11:22, Chun Kit Edwin Lau wrote:
> > Hi everyone,
> > 
> >     I am looking for a readline trick.  Say for example, when I
> > type an "s" and a arrow key at the prompt, I should be able to scroll
> > last command that begins with an "s".  Is it achievable in realine?
> 
> Short answer: Yes.
> Your question is not complete though.
> If you mean readline in bash, you can add
> 
> "\M-[A": history-search-backward
> 
> to your .inputrc.
> A newly started bash should then handle CURSOR-UP the way you like.
> 
> HTH, Michael
> 
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

-- 
Edwin ERTW Lau
______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to