Class: Brewby::CLI::View

Inherits:
Object
  • Object
show all
Includes:
FFI::NCurses
Defined in:
lib/brewby/cli/view.rb

Instance Method Summary collapse

Constructor Details

#initializeView

Returns a new instance of View.



10
11
12
13
14
15
16
17
# File 'lib/brewby/cli/view.rb', line 10

def initialize
  initscr
  cbreak
  noecho
  timeout(100)
  curs_set 0
  counter = 0
end

Instance Method Details

#clearObject



19
20
21
# File 'lib/brewby/cli/view.rb', line 19

def clear
  endwin
end