Full Line Text Functions for Foreground Colors#
Color Maps#
Normal Colors#
Color | Full Text Function | Example |
---|---|---|
![]() | green("text") | This is GREEN! |
![]() | yellow("text") | This is YELLOW! |
![]() | red("text") | This is RED! |
![]() | magenta("text") | This is MAGENTA! |
![]() | blue("text") | This is BLUE! |
![]() | cyan("text") | This is CYAN! |
![]() | white("text") | This is WHITE! |
![]() | black("text") | This is BLACK! |
Example
Python | |
---|---|
1 2 3 4 5 |
|
How it appears in the terminal:
% This is GREEN!
% This is YELLOW!
% This is RED!
Bright Colors#
Color | Full Text Function | Example |
---|---|---|
![]() | bright_green("text") | This is BRIGHT GREEN! |
![]() | bright_yellow("text") | This is BRIGHT YELLOW! |
![]() | bright_red("text") | This is BRIGHT RED! |
![]() | bright_magenta("text") | This is BRIGHT MAGENTA! |
![]() | bright_blue("text") | This is BRIGHT BLUE! |
![]() | bright_cyan("text") | This is BRIGHT CYAN! |
![]() | bright_white("text") | This is BRIGHT WHITE! |
![]() | bright_black("text") | This is BRIGHT BLACK! |
Limited Support for Bright Colors
Note that bright colors are supported by many terminals, yet not all as bright colors aren't part of the standard set of ANSI colors.
Example
Python | |
---|---|
1 2 3 4 5 |
|
How it appears in the terminal:
% This is BRIGHT GREEN!
% This is BRIGHT YELLOW!
% This is BRIGHT RED!
Functions#
black(text)
#
Prints full line of black text.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text | str | Text to be printed with color. | required |
Example
1 2 3 |
|
How it appears in the terminal:
% This is BLACK!
blue(text)
#
Prints full line of blue text.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text | str | Text to be printed with color. | required |
Example
1 2 3 |
|
How it appears in the terminal:
% This is BLUE!
cyan(text)
#
Prints full line of cyan text.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text | str | Text to be printed with color. | required |
Example
1 2 3 |
|
How it appears in the terminal:
% This is CYAN!
green(text)
#
Prints full line of green text.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text | str | Text to be printed with color. | required |
Example
1 2 3 |
|
How it appears in the terminal:
% This is GREEN!
magenta(text)
#
Prints full line of magenta text.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text | str | Text to be printed with color. | required |
Example
1 2 3 |
|
How it appears in the terminal:
% This is MAGENTA!
red(text)
#
Prints full line of red text.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text | str | Text to be printed with color. | required |
Example
1 2 3 |
|
How it appears in the terminal:
% This is RED!
white(text)
#
Prints full line of white text.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text | str | Text to be printed with color. | required |
Example
1 2 3 |
|
How it appears in the terminal:
% This is WHITE!
yellow(text)
#
Prints full line of yellow text.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text | str | Text to be printed with color. | required |
Example
1 2 3 |
|
How it appears in the terminal:
% This is YELLOW!
bright_black(text)
#
Prints full line of bright black text.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text | str | Text to be printed with color. | required |
Example
1 2 3 |
|
How it appears in the terminal:
% This is BRIGHT BLACK!
bright_blue(text)
#
Prints full line of bright blue text.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text | str | Text to be printed with color. | required |
Example
1 2 3 |
|
How it appears in the terminal:
% This is BRIGHT BLUE!
bright_cyan(text)
#
Prints full line of bright cyan text.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text | str | Text to be printed with color. | required |
Example
1 2 3 |
|
How it appears in the terminal:
% This is BRIGHT CYAN!
bright_green(text)
#
Prints full line of bright green text.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text | str | Text to be printed with color. | required |
Example
1 2 3 |
|
How it appears in the terminal:
% This is BRIGHT GREEN!
bright_magenta(text)
#
Prints full line of bright magenta text.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text | str | Text to be printed with color. | required |
Example
1 2 3 |
|
How it appears in the terminal:
% This is BRIGHT MAGENTA!
bright_red(text)
#
Prints full line of bright red text.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text | str | Text to be printed with color. | required |
Example
1 2 3 |
|
How it appears in the terminal:
% This is BRIGHT RED!
bright_white(text)
#
Prints full line of bright white text.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text | str | Text to be printed with color. | required |
Example
1 2 3 |
|
How it appears in the terminal:
% This is BRIGHT WHITE!
bright_yellow(text)
#
Prints full line of bright yellow text.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text | str | Text to be printed with color. | required |
Example
1 2 3 |
|
How it appears in the terminal:
% This is BRIGHT YELLOW!