Sha256: 44a3ab5af978c7b7003acc8f2876b12dde75caac61fd9ef912d532d912de54e0

Contents?: true

Size: 991 Bytes

Versions: 69

Compression:

Stored size: 991 Bytes

Contents

# frozen_string_literal: true

module Cryptum
  # Cryptum::UI Module used for Presenting the
  # Cryptum Curses Interface
  module UI
    # This Class is Used to Detect Key Press Events
    class KeyPressEvent
      attr_accessor :key_c,
                    :key_g,
                    :key_r,
                    :key_u,
                    :key_w,
                    :key_x,
                    :key_ansi,
                    :key_down_arrow,
                    :key_end,
                    :key_enter,
                    :key_esc,
                    :key_home,
                    :key_page_down,
                    :key_page_up,
                    :key_tab,
                    :key_up_arrow

    rescue Interrupt, StandardError => e
      # Produce a Stacktrace for anything else
      Cryptum::Log.append(level: :error, msg: e, which_self: self)
    end

    # Display a List of Every UI Module

    public_class_method def self.help
      puts constants.sort
    end
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
cryptum-0.0.466 lib/cryptum/ui/key_press_event.rb
cryptum-0.0.465 lib/cryptum/ui/key_press_event.rb
cryptum-0.0.464 lib/cryptum/ui/key_press_event.rb
cryptum-0.0.463 lib/cryptum/ui/key_press_event.rb
cryptum-0.0.462 lib/cryptum/ui/key_press_event.rb
cryptum-0.0.461 lib/cryptum/ui/key_press_event.rb
cryptum-0.0.460 lib/cryptum/ui/key_press_event.rb
cryptum-0.0.459 lib/cryptum/ui/key_press_event.rb
cryptum-0.0.458 lib/cryptum/ui/key_press_event.rb
cryptum-0.0.457 lib/cryptum/ui/key_press_event.rb
cryptum-0.0.456 lib/cryptum/ui/key_press_event.rb
cryptum-0.0.455 lib/cryptum/ui/key_press_event.rb
cryptum-0.0.454 lib/cryptum/ui/key_press_event.rb
cryptum-0.0.453 lib/cryptum/ui/key_press_event.rb
cryptum-0.0.452 lib/cryptum/ui/key_press_event.rb
cryptum-0.0.451 lib/cryptum/ui/key_press_event.rb
cryptum-0.0.450 lib/cryptum/ui/key_press_event.rb
cryptum-0.0.449 lib/cryptum/ui/key_press_event.rb
cryptum-0.0.448 lib/cryptum/ui/key_press_event.rb
cryptum-0.0.447 lib/cryptum/ui/key_press_event.rb