summaryrefslogtreecommitdiff
path: root/color.py
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-03 07:06:36 -0500
committerJeff Carr <[email protected]>2024-10-03 07:06:36 -0500
commit6d3dded68b5c15daeb0021bd629ba2ac4dd9e07f (patch)
treea98392ec0f5f614836f38fe2b61d5299ae0a5070 /color.py
parent32619e7dadbbb4c812b0b405588b158ba562a50f (diff)
dump current colors in the shellv0.22.1
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'color.py')
-rwxr-xr-xcolor.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/color.py b/color.py
new file mode 100755
index 0000000..594a370
--- /dev/null
+++ b/color.py
@@ -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}"))