Method: HandyToolbox::Screen#init

Defined in:
lib/handy_toolbox/screen.rb

#initObject



14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/handy_toolbox/screen.rb', line 14

def init
  Curses.init_screen
  Curses.start_color
  Curses.use_default_colors if @default_colors
  Ui.hide_cursor
  Curses.cbreak
  Curses.crmode
  Curses.noecho
  Curses.nonl
  Curses.stdscr.keypad(true)
  @scroll = Scroll.new
end