lib/ruco/keyboard.rb in ruco-0.1.5 vs lib/ruco/keyboard.rb in ruco-0.1.6

- old
+ new

@@ -4,10 +4,10 @@ SWAP_DELETE = (ENV['TERM'] == 'xterm-color') MAX_CHAR = 255 ENTER = 13 ESCAPE = 27 IS_18 = RUBY_VERSION =~ /^1\.8/ - SEQUENCE_TIMEOUT = 0.01 + SEQUENCE_TIMEOUT = 0.02 NOTHING = (2**32 - 1) # getch returns this as 'nothing' on 1.8 but nil on 1.9.2 A_TO_Z = ('a'..'z').to_a def self.input(&block) @input = block