mirror of https://github.com/deadc0de6/catcli
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
743 B
Python
38 lines
743 B
Python
2 years ago
|
"""
|
||
|
author: deadc0de6 (https://github.com/deadc0de6)
|
||
|
Copyright (c) 2022, deadc0de6
|
||
|
|
||
|
shell colors
|
||
|
"""
|
||
|
|
||
|
|
||
|
class Colors:
|
||
|
"""shell colors"""
|
||
|
|
||
|
RED = '\033[91m'
|
||
|
GREEN = '\033[92m'
|
||
|
YELLOW = '\033[93m'
|
||
|
PURPLE = '\033[1;35m'
|
||
|
BLUE = '\033[94m'
|
||
|
GRAY = '\033[0;37m'
|
||
|
MAGENTA = '\033[95m'
|
||
|
RESET = '\033[0m'
|
||
|
EMPH = '\033[33m'
|
||
|
BOLD = '\033[1m'
|
||
|
UND = '\033[4m'
|
||
|
|
||
|
@classmethod
|
||
|
def no_color(cls):
|
||
|
"""disable colors"""
|
||
|
Colors.RED = ''
|
||
|
Colors.GREEN = ''
|
||
|
Colors.YELLOW = ''
|
||
|
Colors.PURPLE = ''
|
||
|
Colors.BLUE = ''
|
||
|
Colors.GRAY = ''
|
||
|
Colors.MAGENTA = ''
|
||
|
Colors.RESET = ''
|
||
|
Colors.EMPH = ''
|
||
|
Colors.BOLD = ''
|
||
|
Colors.UND = ''
|