Terminal colors

Terminal colors#

Human readable ANSI escape code.

Font style

NORMAL#

Reset font style.

A color sequence with only NORMAL resets all style, color and background color

BOLD#
DIM#
ITALIC#
UNDERLINED#
NEGATIVE#

Font color

BLACK#
RED#
GREEN#
YELLOW#
BLUE#
PURPLE#
CYAN#
LIGHT_GREY#
DEFAULT#

Reset font color.

WHITE#

Background color

BG_BLACK#
BG_RED#
BG_GREEN#
BG_YELLOW#
BG_BLUE#
BG_PURPLE#
BG_CYAN#
BG_LIGHT_GREY#
BG_DEFAULT#

Reset background color.

BG_WHITE#

Defines

COLOR(...)#

Expands to a string literal containig an escape code setting the terminal color.

Example#

COLOR(BOLD, ITALIC, UNDERLINED, BLUE)
Evaluates to:
"\e[1;3;4;34m"
Since

0.1

COLOR_JOIN(A, B)#