Skip to main content

Crate terminalcolor

Crate terminalcolor 

Source

Functionsยง

convert
Convert shorthand color codes into actual color codes. Best if used in conjunction with the format! macro.
print
Print string s in color color. Supports ANSI colors.
printf
Print string with color. Syntax specified in convert() documentation.
println
Print string s in color color with a newline. Supports ANSI colors.
printlnf
Print string s with color with a newline. Syntax specified in convert() documentation.