# Is there any command line editing package?

**URL:** <https://www.ruby-forum.com/t/is-there-any-command-line-editing-package/110244>\
**Category:** Ruby\
**Created:** [July 24, 2007, 4:22pm UTC](https://www.ruby-forum.com/t/is-there-any-command-line-editing-package/110244 "2007-07-24T16:22:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![haomiao](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/9fc29f/32.png) [@haomiao](https://www.ruby-forum.com/u/haomiao)\
**Post date:** [July 24, 2007, 4:22pm UTC](https://www.ruby-forum.com/t/is-there-any-command-line-editing-package/110244/1 "2007-07-24T16:22:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![haomiao](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/9fc29f/32.png) [@haomiao](https://www.ruby-forum.com/u/haomiao)\
**Post date:** [July 24, 2007, 4:33pm UTC](https://www.ruby-forum.com/t/is-there-any-command-line-editing-package/110244/2 "2007-07-24T16:33:28Z")

</div>

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

> ```
> Or any other advice?
> 
> ```

Something like Readline?

> **[GNU Readline](https://en.wikipedia.org/wiki/Readline)**
>
> GNU Readline is a software library that provides in-line editing and history capabilities for interactive programs with a command-line interface, such as Bash. It is currently maintained by Chet Ramey as part of the GNU Project.
> It allows users to move the text cursor, search the command history, control a kill ring (a more flexible version of a copy/paste clipboard) and use tab completion on a text terminal. As a cross-platform library, readline allows applications on various systems to exhibit...

-Rob

Rob B. [http://agileconsultingllc.com](http://agileconsultingllc.com)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![haomiao](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/9fc29f/32.png) [@haomiao](https://www.ruby-forum.com/u/haomiao)\
**Post date:** [July 24, 2007, 9:18pm UTC](https://www.ruby-forum.com/t/is-there-any-command-line-editing-package/110244/3 "2007-07-24T21:18:02Z")

</div>

> > ```
> > I want to develop a command line environment using 
> > Is there any package to use?
> > 
> > ```

You could also pick up cmd [0], which is no longer in development but is  
fairly easily extended and might well suffice for simple cases.

[0] [http://rubyforge.org/projects/cmd](http://rubyforge.org/projects/cmd)

---

<div class="post-metadata">

**Author:** ![haomiao](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/9fc29f/32.png) [@haomiao](https://www.ruby-forum.com/u/haomiao)\
**Post date:** [July 25, 2007, 2:40am UTC](https://www.ruby-forum.com/t/is-there-any-command-line-editing-package/110244/4 "2007-07-25T02:40:59Z")

</div>

On 7 24 , 10 31 , Rob B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> removed\_email\_address@domain.invalid  
> Yes! the Readline module, thanks
