bug-bash
[Top][All Lists]
Advanced

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

Re: Need info on input keys


From: Mike Stroyan
Subject: Re: Need info on input keys
Date: Sun, 2 Aug 2009 19:27:08 -0600
User-agent: Mutt/1.5.18 (2008-05-17)

On Tue, Jul 07, 2009 at 12:17:37PM +0530, seshikanth varma wrote:
> I need to implement history feature in an emulated shell environment. I need
> to read keys present in the keyboard and define handler for each key. For
> example, Up arrow gives the previous command in the history. Can u please
> tell me how to make a start?

  Have a look at the readline library, which bash uses.
http://tiswww.case.edu/php/chet/readline/rltop.html

-- 
Mike Stroyan <mike@stroyan.net>




reply via email to

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