Is there any command line editing package?

Discussion in 'Ruby' started by haomiao, Jul 24, 2007.

  1. haomiao

    haomiao Guest

    Hi
    I want to develop a command line environment using ruby, it can
    - edit the command line online, like vi mode or emacs mode
    in bash
    - support command history and history searching
    - the command is not the real shell command. It is just a
    string , when hit enter, this string will pass to another class to
    interpret.

    Is there any package to use?
    Or any other advice?
    haomiao, Jul 24, 2007
    #1
    1. Advertising

  2. On Jul 24, 2007, at 10:20 AM, haomiao wrote:

    > Hi
    > I want to develop a command line environment using ruby, it can
    > - edit the command line online, like vi mode or emacs mode
    > in bash
    > - support command history and history searching
    > - the command is not the real shell command. It is just a
    > string , when hit enter, this string will pass to another class to
    > interpret.
    >
    > Is there any package to use?
    > Or any other advice?


    Something like Readline?

    http://en.wikipedia.org/wiki/Readline

    -Rob

    Rob Biedenharn http://agileconsultingllc.com
    Rob Biedenharn, Jul 24, 2007
    #2
    1. Advertising

  3. haomiao

    haomiao Guest

    On 7 24 , 10 31 , Rob Biedenharn <>
    wrote:
    > On Jul 24, 2007, at 10:20 AM, haomiao wrote:
    >
    > > Hi
    > > I want to develop a command line environment using ruby, it can
    > > - edit the command line online, like vi mode or emacs mode
    > > in bash
    > > - support command history and history searching
    > > - the command is not the real shell command. It is just a
    > > string , when hit enter, this string will pass to another class to
    > > interpret.

    >
    > > Is there any package to use?
    > > Or any other advice?

    >
    > Something like Readline?
    >
    > http://en.wikipedia.org/wiki/Readline
    >
    > -Rob
    >
    > Rob Biedenharn http://agileconsultingllc.com
    >


    Yes! the Readline module, thanks
    haomiao, Jul 25, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Charles Fox
    Replies:
    3
    Views:
    1,709
    Charles Fox
    Apr 15, 2005
  2. John

    vi-style command-line editing in gdb

    John, Nov 14, 2003, in forum: C Programming
    Replies:
    2
    Views:
    324
    Tristan Miller
    Nov 14, 2003
  3. enjoylife_95135
    Replies:
    2
    Views:
    327
    enjoylife_95135
    Aug 15, 2004
  4. Joel VanderWerf

    command line editing in irb under MSYS

    Joel VanderWerf, Nov 25, 2003, in forum: Ruby
    Replies:
    1
    Views:
    119
    Joel VanderWerf
    Nov 25, 2003
  5. greg
    Replies:
    4
    Views:
    106
Loading...

Share This Page