Add yellow and default colors for printing

This commit is contained in:
William Brawner 2024-12-09 22:22:22 -07:00
parent 418f47bcc4
commit a1115bc13c
Signed by: wbrawner
GPG key ID: 8FF12381C6C90D35

View file

@ -21,8 +21,10 @@ class Color(IntEnum):
CLEAR = 0
RED = 31
GREEN = 32
YELLOW = 33
DEFAULT = 39
GREY = 90
def print_color(message, color):
print(f'\033[{color}m{message}\033[{Color.CLEAR}m')
def print_color(message, color, end='\n'):
print(f'\033[{color}m{message}\033[{Color.CLEAR}m', end=end)