Class
Constants
No documentation available
Class Methods
::
lib/reline/face.rb
View on GitHub
# File tmp/rubies/ruby-master/lib/reline/face.rb, line 169
def self.[](name)
@configs[name]
end
No documentation available
lib/reline/face.rb
View on GitHub
# File tmp/rubies/ruby-master/lib/reline/face.rb, line 173
def self.config(name, &block)
@configs ||= {}
@configs[name] = Config.new(name, &block)
end
No documentation available
::
lib/reline/face.rb
View on GitHub
# File tmp/rubies/ruby-master/lib/reline/face.rb, line 178
def self.configs
@configs.transform_values(&:definition)
end
No documentation available
lib/reline/face.rb
View on GitHub
# File tmp/rubies/ruby-master/lib/reline/face.rb, line 164
def self.force_truecolor
@force_truecolor = true
@configs&.each_value(&:reconfigure)
end
No documentation available
lib/reline/face.rb
View on GitHub
# File tmp/rubies/ruby-master/lib/reline/face.rb, line 182
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: :bright_white, background: :gray
conf.define :enhanced, foreground: :black, background: :white
conf.define :scrollbar, foreground: :white, background: :gray
end
end
No documentation available
lib/reline/face.rb
View on GitHub
# File tmp/rubies/ruby-master/lib/reline/face.rb, line 195
def self.reset_to_initial_configs
@configs = {}
load_initial_configs
end
No documentation available
::
lib/reline/face.rb
View on GitHub
# File tmp/rubies/ruby-master/lib/reline/face.rb, line 160
def self.truecolor?
@force_truecolor || %w[truecolor 24bit].include?(ENV['COLORTERM'])
end
No documentation available