dump current colors in the shell

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-10-03 07:06:36 -05:00
parent 32619e7dad
commit 6d3dded68b
1 changed files with 7 additions and 0 deletions

7
color.py Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/python3
def color(num, text):
return f"\033[38;5;{num}m{text}\033[0m"
for i in range(300):
print(color(i, f"number {i:02}"))