Crate terminal_paint
source ·Expand description
Terminal paint
terminal-paint
is a library that simplifies printing colorful text to your console.
It is based on ANSI Escape Code. Should work on Linux, macOS and Windows (from Windows 10 1511+)
Enums
ColorInstruction
is a helper enum
,
that helps to represent numbers in ANSI Escape Code.
ColorInstruction::One
represents either background or font color;
ColorInstruction::Two
represents combination of both; Constants
Functions
calls
print!
but with specified colorcalls
println!
but with specified colorReturns
String
with the text of specified color