Skip to content

Instantly share code, notes, and snippets.

@livioribeiro
livioribeiro / terminal color.py
Last active January 25, 2025 17:14
Python terminal colors
print(
f"{' '}\033[93m{'\u2581' * 16}\033[0m\n"
f"\033[93m\u2595\033[31;40m\u2599{' ' * 15}\033[0m\033[93m\u258F\033[0m\n"
f"\033[93m\u2595\033[31m\u2588\033[31;40m\u2599{' ' * 14}\033[0m\033[93m\u258F\033[0m\n"
f"\033[93m\u2595\033[31m{'\u2588' * 2}\033[31;107m\u2599{' ' * 13}\033[0m\033[93m\u258F\033[0m\n"
f"\033[93m\u2595\033[31m{'\u2588' * 2}\033[31;107m\u259B{' ' * 13}\033[0m\033[93m\u258F\033[0m\n"
f"\033[93m\u2595\033[31m\u2588\033[31;42m\u259B{' ' * 14}\033[0m\033[93m\u258F\033[0m\n"
f"\033[93m\u2595\033[31;42m\u259B{' ' * 15}\033[0m\033[93m\u258F\033[0m\n"
f"{' '}\033[93m{'\u2594' * 16}\033[0m\n"
)