class Sc20XX::UI::Color

this class stores our text color configurations

Constants

COLORS
DEFINITION
PAIRS

Public Class Methods

get(name) click to toggle source
# File lib/sc20XX/ui/color.rb, line 41
def self.get(name)
  COLORS[name]
end
init() click to toggle source
# File lib/sc20XX/ui/color.rb, line 33
def self.init
  Curses.start_color

  DEFINITION.each do |definition, (color, background)|
    Curses.init_pair(definition, color, background)
  end
end