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?
On Jul 24, 2007, at 10:20 AM, haomiao wrote:
Or any other advice?
Something like 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
[email protected]
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
On 7 24 , 10 31 , Rob B. [email protected]
wrote:
[email protected]
Yes! the Readline module, thanks