struct Term::Prompt::Palette

Defined in:

prompt/palette.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(enabled : Term::Color = Color.color(:dark_grey), active : Term::Color = Color.color(:green), help : Term::Color = Color.color(:dim_grey), error : Term::Color = Color.color(:red), warning : Term::Color = Color.color(:yellow)) #

[View source]

Instance Method Detail

def active : Term::Color #

def clone #

[View source]
def copy_with(enabled _enabled = @enabled, active _active = @active, help _help = @help, error _error = @error, warning _warning = @warning) #

[View source]
def enabled : Term::Color #

def error : Term::Color #

def help : Term::Color #

def warning : Term::Color #