Create windows using Curses::Window#subwin
This commit is contained in:
parent
84706e3d26
commit
7450224545
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Reference in a new issue