Module: Textbringer::PDCurses

Defined in:
lib/textbringer/window.rb

Overview

These features should be provided by curses.gem.

Constant Summary collapse

KEY_OFFSET =
0xec00
ALT_0 =
KEY_OFFSET + 0x97
ALT_9 =
KEY_OFFSET + 0xa0
ALT_A =
KEY_OFFSET + 0xa1
ALT_Z =
KEY_OFFSET + 0xba
ALT_NUMBER_BASE =
ALT_0 - ?0.ord
ALT_ALPHA_BASE =
ALT_A - ?a.ord
KEY_MODIFIER_SHIFT =
1
KEY_MODIFIER_CONTROL =
2
KEY_MODIFIER_ALT =
4
KEY_MODIFIER_NUMLOCK =
8

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.dll_loaded=(value) ⇒ Object (writeonly)

Sets the attribute dll_loaded

Parameters:

  • value

    the value to set the attribute dll_loaded to.



26
27
28
# File 'lib/textbringer/window.rb', line 26

def dll_loaded=(value)
  @dll_loaded = value
end

Class Method Details

.dll_loaded?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/textbringer/window.rb', line 28

def dll_loaded?
  @dll_loaded
end