class Reline::Face
Constants
- SGR_PARAMETERS
Public Class Methods
[](name)
click to toggle source
# File reline/face.rb, line 127 def self.[](name) @configs[name] end
config(name, &block)
click to toggle source
# File reline/face.rb, line 131 def self.config(name, &block) @configs ||= {} @configs[name] = Config.new(name, &block) end
configs()
click to toggle source
# File reline/face.rb, line 136 def self.configs @configs.transform_values(&:definition) end
load_initial_configs()
click to toggle source
# File reline/face.rb, line 140 def self.load_initial_configs config(:default) do |conf| conf.define :default, style: :reset conf.define :enhanced, style: :reset conf.define :scrollbar, style: :reset end config(:completion_dialog) do |conf| conf.define :default, foreground: :white, background: :cyan conf.define :enhanced, foreground: :white, background: :magenta conf.define :scrollbar, foreground: :white, background: :cyan end end
reset_to_initial_configs()
click to toggle source
# File reline/face.rb, line 153 def self.reset_to_initial_configs @configs = {} load_initial_configs end