diff options
Diffstat (limited to 'src/colors.py')
-rw-r--r-- | src/colors.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/colors.py b/src/colors.py new file mode 100644 index 0000000..760c3f3 --- /dev/null +++ b/src/colors.py @@ -0,0 +1,21 @@ +def esc(code): + return f'\033[{code}m' + +RESET = esc(0) +BLACK = esc(30) +RED = esc(31) +GREEN = esc(32) +YELLOW = esc(33) +BLUE = esc(34) +MAGENTA = esc(35) +CYAN = esc(36) +WHITE = esc(37) +DEFAULT = esc(39) +LIGHT_BLACK = esc(90) +LIGHT_RED = esc(91) +LIGHT_GREEN = esc(92) +LIGHT_YELLOW = esc(93) +LIGHT_BLUE = esc(94) +LIGHT_MAGENTA = esc(95) +LIGHT_CYAN = esc(96) +LIGHT_WHITE = esc(97) |