diff options
| author | Jeff Carr <[email protected]> | 2024-10-03 07:06:36 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-03 07:06:36 -0500 |
| commit | 6d3dded68b5c15daeb0021bd629ba2ac4dd9e07f (patch) | |
| tree | a98392ec0f5f614836f38fe2b61d5299ae0a5070 | |
| parent | 32619e7dadbbb4c812b0b405588b158ba562a50f (diff) | |
dump current colors in the shellv0.22.1
Signed-off-by: Jeff Carr <[email protected]>
| -rwxr-xr-x | color.py | 7 |
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}")) |
