class Exfetch::Options

Defined in:

exfetch/option_handler.cr

Constant Summary

COLOR_MAP = {"black" => 0_u8, "red" => 1_u8, "green" => 2_u8, "yellow" => 3_u8, "blue" => 4_u8, "magenta" => 5_u8, "cyan" => 6_u8, "white" => 7_u8, "bright_black" => 8_u8, "bright_red" => 9_u8, "bright_green" => 10_u8, "bright_yellow" => 11_u8, "bright_blue" => 12_u8, "bright_magenta" => 13_u8, "bright_cyan" => 14_u8, "bright_white" => 15_u8}

Map to ANSI 16-color codes (0-15) supported by most terminals

Class Method Summary

Instance Method Summary

Class Method Detail

def self.parse(args) #

def self.preview_ascii(name, options) #

Instance Method Detail

def ascii : String #

def ascii=(ascii : String) #

def color : UInt8 #

def color=(color : UInt8) #

def lowercase : Bool #

def lowercase=(lowercase : Bool) #

def nerd_icons : Bool #

def nerd_icons=(nerd_icons : Bool) #

def order : Array(Symbol) #

def order=(order : Array(Symbol)) #

def padding : Int32 #

def padding=(padding : Int32) #

def right_justify : Bool #

def right_justify=(right_justify : Bool) #

def separator : String #

def separator=(separator : String) #