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
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§

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