Archived
1
0
Fork 0

Create windows using Curses::Window#subwin

This commit is contained in:
Braiden Vasco 2017-07-24 12:33:08 +00:00
parent 84706e3d26
commit 7450224545

View file

@ -10,7 +10,7 @@ module Widgets
def initialize(parent, x, y, width, height) def initialize(parent, x, y, width, height)
@parent = parent @parent = parent
@window = Curses::Window.new height, width, y, x @window = parent ? parent.window.subwin(height, width, y, x) : Curses.stdscr
@width = width @width = width
@height = height @height = height