Sha256: e1378db2e84ebb3afbc9d470f0df1a469c8d8560a0402867d0c5fe1eb44a2804

Contents?: true

Size: 405 Bytes

Versions: 6

Compression:

Stored size: 405 Bytes

Contents

# frozen_string_literal: true

# some constants that can be used with send_keys, just to help out people creating tests
module TTYtest
  BACKSPACE = 127.chr
  TAB = 9.chr
  CTRLF = 6.chr
  CTRLC = 3.chr
  CTRLD = '\004'
  ESCAPE = 27.chr

  UP_ARROW = "#{ESCAPE}[A".freeze
  DOWN_ARROW = "#{ESCAPE}[B".freeze
  RIGHT_ARROW = "#{ESCAPE}[C".freeze
  LEFT_ARROW = "#{ESCAPE}[D".freeze

  CLEAR = 'clear'
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ttytest2-0.9.5 lib/ttytest/constants.rb
ttytest2-0.9.4 lib/ttytest/constants.rb
ttytest2-0.9.3 lib/ttytest/constants.rb
ttytest2-0.9.2 lib/ttytest/constants.rb
ttytest2-0.9.1 lib/ttytest/constants.rb
ttytest2-0.9.0 lib/ttytest/constants.rb