Method: Rurses::Window#initialize
- Defined in:
- lib/terminal-notes/rurses/window.rb
#initialize(**details) ⇒ Window
Returns a new instance of Window.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/terminal-notes/rurses/window.rb', line 14 def initialize(**details) @curses_ref = details.fetch(:curses_ref) { Rurses.curses.newwin( details.fetch(:lines), details.fetch(:columns), details.fetch(:y), details.fetch(:x) ) } @standard_screen = details.fetch(:standard_screen) { false } @subwindows = { } end |