Sha256: ff97bf8bbc24af5d1a846415c0764870f124a5ad5c8c00b035e9a876099bc6df

Contents?: true

Size: 172 Bytes

Versions: 7

Compression:

Stored size: 172 Bytes

Contents

# encoding: utf-8

require_relative "../lib/tty-prompt"

prompt = TTY::Prompt::new

answer = prompt.keypress("Press any key to continue")

puts "Answer: #{answer.inspect}"

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tty-prompt-0.17.2 examples/keypress.rb
tty-prompt-0.17.1 examples/keypress.rb
tty-prompt-0.17.0 examples/keypress.rb
tty-prompt-0.16.1 examples/keypress.rb
tty-prompt-0.16.0 examples/keypress.rb
tty-prompt-0.15.0 examples/keypress.rb
tty-prompt-0.14.0 examples/keypress.rb