Sha256: c902d42d572f0f77c71a952cb19eb4d71a720665fe8b4cf455315bbdef42289f
Contents?: true
Size: 215 Bytes
Versions: 3
Compression:
Stored size: 215 Bytes
Contents
require_relative '../lib/tty-reader' puts "*** TTY::Reader Shell ***" puts "Press Ctrl-X to exit" reader = TTY::Reader.new reader.on(:keyctrl_x) { puts "Exiting..."; exit } loop do reader.read_line('=> ') end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tty-reader-0.4.0 | examples/shell.rb |
tty-reader-0.3.0 | examples/shell.rb |
tty-reader-0.2.0 | examples/shell.rb |