Method: UI::Colors.set
- Defined in:
- lib/ektoplayer/ui/colors.rb
.set(name, fg, bg = nil, *attrs) ⇒ Object
112 113 114 115 116 |
# File 'lib/ektoplayer/ui/colors.rb', line 112 def self.set(name, fg, bg = nil, *attrs) @@aliases[name] = self.init_pair_cached(fg, bg) attrs.each { |attr| @@aliases[name] |= ATTRIBUTES[attr] } @@aliases[name] end |