Sha256: 00637662073d5e0fa94ceb2dcfefac2a396dab89944c17436daab79c27335b52

Contents?: true

Size: 1.34 KB

Versions: 7

Compression:

Stored size: 1.34 KB

Contents

module TE3270
  #
  # Creates methods that are mixed in with the +TE3270+ module that represent all of the
  # function keys that can be send to the system.  These keys would typically be sent to
  # the +send_keys_ method.
  #
  # @example Using a function key
  #   on(MyScreen).send_keys TE3270.Enter
  #
  module FunctionKeys

    KEYS = [
        'Attn',
        'BackSpace',
        'BackTab',
        'CapsLock',
        'Clear',
        'Down',
        'Left',
        'Left2',
        'Right',
        'Right2',
        'CursorSelect',
        'Up',
        'Delete',
        'Dup',
        'Enter',
        'EraseEOF',
        'EraseInput',
        'FieldMark',
        'Home',
        'Insert',
        'BackTab',
        'NewLIne',
        'PenSel',
        'Print',
        'Reset',
        'ShiftOn',
        'SysReq',
        'Tab',
        'Pa1',
        'Pa2',
        'Pa3',
        'Pf1',
        'Pf2',
        'Pf3',
        'Pf4',
        'Pf5',
        'Pf6',
        'Pf7',
        'Pf8',
        'Pf9',
        'Pf10',
        'Pf11',
        'Pf12',
        'Pf13',
        'Pf14',
        'Pf15',
        'Pf16',
        'Pf17',
        'Pf18',
        'Pf19',
        'Pf20',
        'Pf21',
        'Pf22',
        'Pf23',
        'Pf24',
    ]

    KEYS.each do |key|
      define_method(key) do
        "<#{key}>"
      end
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
te3270-0.9.0 lib/te3270/function_keys.rb
te3270-0.8.1 lib/te3270/function_keys.rb
te3270-0.8.0 lib/te3270/function_keys.rb
te3270-0.7.1 lib/te3270/function_keys.rb
te3270-0.7.0 lib/te3270/function_keys.rb
te3270-0.6.0 lib/te3270/function_keys.rb
te3270-0.5.0-x86_64-darwin-14 lib/te3270/function_keys.rb