[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bash-bug
Subject:    Re: Need info on input keys
From:       seshikanth varma <seshikanthvarma () gmail ! com>
Date:       2009-08-03 18:47:57
Message-ID: f9ccef820908031135x1f7f6c6alf02d3777a0076289 () mail ! gmail ! com
[Download RAW message or body]

This may not serve my purpose. In my application there is a socket
connection between 2 daemons. And say if client sends the message,
the server receives the command the displays the output. If i give n
messages/commands to client, the server will respond and
in turn it has to remember the previous commands on up-arrow just like the
bash shell. I want to implement key bindings and i want to enable the
history option like bash shell in the client side.


On Mon, Aug 3, 2009 at 6:57 AM, Mike Stroyan <mike@stroyan.net> wrote:

> 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>
>



-- 
Regards,
Seshikanth

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic