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§
- Color
Instruction ColorInstruction
is a helperenum
, that helps to represent numbers in ANSI Escape Code.ColorInstruction::One
represents either background or font color;ColorInstruction::Two
represents combination of both;
Constants§
- BLACK
- BLACK_
ON_ BLUE - BLACK_
ON_ CYAN - BLACK_
ON_ GREEN - BLACK_
ON_ PURPLE - BLACK_
ON_ RED - BLACK_
ON_ WHITE - BLACK_
ON_ YELLOW - BLUE
- BOLD
- CYAN
- GRAY
- GREEN
- INVERTED
- ON_
BLACK - ON_BLUE
- ON_CYAN
- ON_
GREEN - ON_
PURPLE - ON_RED
- ON_
WHITE - ON_
YELLOW - PURPLE
- RED
- RED_
ON_ BLACK - RED_
ON_ GREEN - RED_
ON_ YELLOW - WHITE
- YELLOW
Functions§
- color_
print - calls
print!
but with specified color - color_
println - calls
println!
but with specified color - paint
- Returns
String
with the text of specified color