# File lib/sup/colormap.rb, line 56 def initialize raise "only one instance can be created" if @@instance @@instance = self @entries = {} @color_pairs = {[Curses::COLOR_WHITE, Curses::COLOR_BLACK] => 0} @users = [] @next_id = 0 yield self if block_given? @entries[highlight_sym(:none)] = highlight_for(Curses::COLOR_WHITE, Curses::COLOR_BLACK, []) + [nil] end