Sha256: db6f2b6b8c61c15106109b1fa790a464e4b09d602817053e1b25c1da1e98d81e

Contents?: true

Size: 188 Bytes

Versions: 16

Compression:

Stored size: 188 Bytes

Contents

require 'io/console'

puts 'press a key using STDIN.getc'
c = STDIN.getc
puts "c: #{c.dump}"

puts 'press another key using STDIN.getch'
ch = STDIN.getch
puts "ch: #{ch.dump}"

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
gemwarrior-0.15.20 tests/getch_test.rb
gemwarrior-0.15.19 tests/getch_test.rb
gemwarrior-0.15.18 tests/getch_test.rb
gemwarrior-0.15.17 tests/getch_test.rb
gemwarrior-0.15.16 tests/getch_test.rb
gemwarrior-0.15.15 tests/getch_test.rb
gemwarrior-0.15.14 tests/getch_test.rb
gemwarrior-0.15.13 tests/getch_test.rb
gemwarrior-0.15.12 tests/getch_test.rb
gemwarrior-0.15.11 tests/getch_test.rb
gemwarrior-0.15.10 tests/getch_test.rb
gemwarrior-0.15.9 tests/getch_test.rb
gemwarrior-0.15.8 tests/getch_test.rb
gemwarrior-0.15.7 tests/getch_test.rb
gemwarrior-0.15.6 tests/getch_test.rb
gemwarrior-0.15.5 tests/getch_test.rb