def init_vars
      @quit_key ||= FFI::NCurses::KEY_F10
      # actually this should be maintained inside ncurses pack, so not loaded 2 times.
      # this way if we call an app from existing program, App won't start ncurses.
      unless $ncurses_started
        init_ncurses
      end
      $lastline = Ncurses.LINES - 1
      unless $log
        logpath=ENV["CANIS_LOG_PATH"]
        $log = create_logger(logpath || "/dev/null")
      end
    end
def init_vars
      @quit_key ||= FFI::NCurses::KEY_F10
      # actually this should be maintained inside ncurses pack, so not loaded 2 times.
      # this way if we call an app from existing program, App won't start ncurses.
      unless $ncurses_started
        init_ncurses
      end
      $lastline = Ncurses.LINES - 1
      unless $log
        logpath=ENV["CANIS_LOG_PATH"]
        $log = create_logger(logpath || "/dev/null")
      end
    end
TODO: i should be able to pass window coords here in config
 :title