Ruby Readline


..... Sorry, English version README has not been written yet ......


Homepage:
  http://alex.mag.keio.ac.jp/~hiroya/ruby/rreadline/
Download:
  http://alex.mag.keio.ac.jp/~hiroya/ruby/rreadline/rradline-current.tar.gz

Description: 
  Emulating GNU Readline Library Functions by Ruby script. 
  This is NOT "ext/readline" (distributed with ruby, interface
  to GNU Readline). 
  A csh like sample program (directory/filename completion,
  history, cd, cat...) is included.

Usage:

 (A) Readline

       require "RReadline"
       r = RReadline.new

       def r.prompt
           _print("prompt> ")
       end

       line = r.readline()
       print line,"\n"

 (B) CommandLineEditor

       require "CommandLineEditor"
       editor = CommandLineEditor.new

       def editor.prompt
           print("prompt> ")
       end

       editor.executables={
          "print" => Proc.new{|argv| print argv.join(","),"\n" }
       }

       editor.loop
