From 6d3dded68b5c15daeb0021bd629ba2ac4dd9e07f Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 3 Oct 2024 07:06:36 -0500 Subject: [PATCH] dump current colors in the shell Signed-off-by: Jeff Carr --- color.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 color.py 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}"))