Hi all,
A few quick questions out there for people using HighLine.  I've been
looking at the examples and the readline one looks similar to what I
want to do.  Basically, I'd like the user to be able to type commands
and then have my program execute them.  However, I'm trying to work with
the example but can't figure out how to take it to the next step.
Here's the example:
loop do
  cmd = ask("Enter command:  ", %w{save load reset quit}) do |q|
    q.readline = true
  end
  say("Executing \"#{cmd}\"...")
  break if cmd == "quit"
end

I'd like to be able to type a command such as load foobar or save foo
where the command takes a second parameter that isn't explicitely known
beforehand.  Is there anyway to do that?  I tried passing in regular
expressions but couldn't get anywhere.


Also, another question about highline.  I have a list that's several
rows and columns.  I'd like the current list to update with new values
instead of printing a new list.  I looked at the overwrite example but
it only seems to work with one line.  Is this possible at all?

Thanks!
Ray

-- 
Posted via http://www.ruby-forum.com/.