Add yellow and default colors for printing
This commit is contained in:
parent
418f47bcc4
commit
a1115bc13c
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue