Daniel Calvelo
12/24/2005 8:26:00 PM
Have you tried using the Readline module?
require "readline"
$completions = ["cmd_1","cmd_42","cmd_one"]
Readline::completion_proc = Proc.new{ |prefix| $completions if prefix
=~ /cmd_/ }
0.upto(4) { line = Readline::readline( "Cmd? ", true ) }
You get the idea...
Daniel.