lib/ig_markets/cli/curses_window.rb
def prepare
          raise IGMarketsError, 'curses gem is not installed' unless available?

          return if @prepared

          Curses.noecho
          Curses.nonl
          Curses.stdscr.nodelay = 1
          Curses.init_screen
          Curses.start_color

          8.times { |color| Curses.init_pair (30 + color), color, 0 }

          @prepared = true
        end
# Returns whether curses support is available. On Windows the 'curses' gem is optional and so this class may not
# be usable.
Returns whether curses support is available. On Windows the 'curses' gem is optional and so this class may not
be usable.
Returns whether curses support is available . On Windows the ' curses ' gem is optional and so this class may not be usable .
def prepare
          raise IGMarketsError, 'curses gem is not installed' unless available?
          return if @prepared
          Curses.noecho
          Curses.nonl
          Curses.stdscr.nodelay = 1
          Curses.init_screen
          Curses.start_color
          8.times { |color| Curses.init_pair (30 + color), color, 0 }
          @prepared = true
        end
def prepare raise IGMarketsError , 'curses gem is not installed' unless available? return if @prepared Curses . noecho Curses . nonl Curses . stdscr . nodelay = 1 Curses . init_screen Curses . start_color 8 . times { | color | Curses . init_pair ( 30 + color ) , color , 0 } @prepared = true end
Returns whether curses support is available.
Returns whether curses support is available .