# File raggle, line 2759 def set_color(color_name = 'text') col = @colors[color_name] col_ary = [] if col.is_a? Array col_ary = col col = col_ary[0] col_ary.each_index { |i| @win.attron $config['attr_palette'][col_ary[i]] if i > 0 } end # disable attributes for normal text (this is a hack for now) @win.attrset Ncurses::A_NORMAL if color_name == 'text' # set color @win.color_set col, nil end