Text Color Codes
Text Color Codes
To set a background color, you simply add 16 to the text color code.
Here are the ANSI color codes you can use to color text in a terminal:
Basic Colors:
1. Black: \033[0;30m
2. Red: \033[0;31m
3. Green: \033[0;32m
4. Yellow: \033[0;33m
5. Blue: \033[0;34m
6. Magenta: \033[0;35m
7. Cyan: \033[0;36m
8. White: \033[0;37m
Background Colors:
Reset Color: