Sha256: ecdef2f36b15e5c889ead371861ca86f5d97bc3fa382e0418550da670082985f

Contents?: true

Size: 372 Bytes

Versions: 113

Compression:

Stored size: 372 Bytes

Contents

#!/usr/local/bin/ruby -w

# using_readline.rb
#
#  Created by James Edward Gray II on 2005-07-06.
#  Copyright 2005 Gray Productions. All rights reserved.

require "rubygems"
require "highline/import"

loop do
  cmd = ask("Enter command:  ", %w{save sample load reset quit}) do |q|
    q.readline = true
  end
  say("Executing \"#{cmd}\"...")
  break if cmd == "quit"
end

Version data entries

113 entries across 109 versions & 14 rubygems

Version Path
rtt-0.0.0.21 vendor/highline-1.5.2/examples/using_readline.rb
rtt-0.0.0.20 vendor/highline-1.5.2/examples/using_readline.rb
rtt-0.0.0.18 vendor/highline-1.5.2/examples/using_readline.rb
rtt-0.0.0.17 vendor/highline-1.5.2/examples/using_readline.rb
rtt-0.0.0.16 vendor/highline-1.5.2/examples/using_readline.rb
rtt-0.0.0.15 vendor/highline-1.5.2/examples/using_readline.rb
rtt-0.0.0.14 vendor/highline-1.5.2/examples/using_readline.rb
rtt-0.0.0.13 vendor/highline-1.5.2/examples/using_readline.rb
rtt-0.0.0.12 vendor/highline-1.5.2/examples/using_readline.rb
rtt-0.0.0.11 vendor/highline-1.5.2/examples/using_readline.rb
rtt-0.0.0.10 vendor/highline-1.5.2/examples/using_readline.rb
rtt-0.0.0.9 vendor/highline-1.5.2/examples/using_readline.rb
rtt-0.0.0.8 vendor/highline-1.5.2/examples/using_readline.rb
radiant-0.9.1 vendor/highline/examples/using_readline.rb
radiant-0.8.2 vendor/highline/examples/using_readline.rb
radiant-0.9.0.rc2 vendor/highline/examples/using_readline.rb
middleman-0.13.1 lib/middleman/vendor/gems/ruby/1.8/gems/highline-1.5.1/examples/using_readline.rb
middleman-0.13.1 lib/middleman/vendor/gems/ruby/1.9.1/gems/highline-1.5.1/examples/using_readline.rb
highline-1.5.2 examples/using_readline.rb
middleman-0.12.2 lib/middleman/vendor/gems/gems/highline-1.5.1/examples/using_readline.rb