VGA Colors#
Disclaimer
Not all terminals support 8-bit VGA colors. If your terminal does support such advanced colors, read on.
Full Line Text Functions#
vga(text, vga) #
Prints full line of 8-bit VGA-colored text.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text | str | Text to be printed with color. | required |
vga | int | Number between | required |
Example
1 2 3 | |
How it appears in the terminal:
% I want this text in blue VGA colors bg_vga(text, vga) #
Prints full line of text on 8-bit VGA-colored background.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text | str | Text to be printed on colored background. | required |
vga | int | Number between | required |
Example
1 2 3 | |
How it appears in the terminal:
% I want this background in blue VGA colors Custom String Styling#
ColorVGA(vga)#
Class for custom 8-bit VGA foreground text color.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
vga | int | Number between | required |
Example
1 2 3 4 5 | |
How it appears in the terminal:
% I want to use LIME GREEN color inside this paragraph BgColorVGA(vga)#
Class for custom 8-bit VGA background color instances.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
vga | int | Number between | required |
Example
1 2 3 4 5 | |
How it appears in the terminal:
% I want to use LIME GREEN background color inside this paragraph