mirror of https://github.com/avast/PurpleDome
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.
26 lines
670 B
Python
26 lines
670 B
Python
#!/usr/bin/env python3
|
|
|
|
""" Helper functions to improve the command line experiments """
|
|
|
|
# Colors to be used when printing text to the terminal
|
|
# print(f"{CommandlineColors.WARNING}Warning {CommandlineColors.ENDC}")
|
|
|
|
|
|
class CommandlineColors:
|
|
""" A collection of command line colors """
|
|
|
|
# pylint: disable=too-few-public-methods
|
|
|
|
HEADER = '\033[95m'
|
|
OKBLUE = '\033[94m'
|
|
OKCYAN = '\033[96m'
|
|
OKGREEN = '\033[92m'
|
|
WARNING = '\033[93m'
|
|
ATTACK = '\033[93m' # An attack is running
|
|
MACHINE_CREATED = '\033[92m'
|
|
MACHINE_STOPPED = '\033[96m'
|
|
FAIL = '\033[91m'
|
|
ENDC = '\033[0m'
|
|
BOLD = '\033[1m'
|
|
UNDERLINE = '\033[4m'
|