Method: Textbringer::Window#initialize

Defined in:
lib/textbringer/window.rb

#initialize(lines, columns, y, x) ⇒ Window

Returns a new instance of Window.



219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
# File 'lib/textbringer/window.rb', line 219

def initialize(lines, columns, y, x)
  @lines = lines
  @columns = columns
  @y = y
  @x = x
  initialize_window(lines, columns, y, x)
  @window.keypad = true
  @window.scrollok(false)
  @window.idlok(true)
  @buffer = nil
  @top_of_window = nil
  @bottom_of_window = nil
  @point_mark = nil
  @deleted = false
  @raw_key_buffer = []
  @key_buffer = []
end