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 |
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 |
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
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
How it appears in the terminal:
% I want to use LIME GREEN background color inside this paragraph