Created
February 24, 2022 09:12
-
-
Save k4sima/822b3d22c68c627584e6fcf12d5f1eda to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Color: | |
# ------------------------------------text-color | |
BLACK = '\033[0;30m' | |
RED = '\033[0;31m' | |
GREEN = '\033[0;32m' | |
YELLOW = '\033[0;33m' | |
BLUE = '\033[0;34m' | |
PURPLE = '\033[0;35m' | |
CYAN = '\033[0;36m' | |
WHITE = '\033[0;37m' | |
LRED = "\033[1;31m" | |
LGREEN = "\033[1;32m" | |
LBLUE = "\033[1;34m" | |
LPURPLE = "\033[1;35m" | |
LCYAN = "\033[1;36m" | |
LWHITE = "\033[1;37m" | |
# ------------------------------------bg-color | |
BG_BLACK = '\033[0;40m' | |
BG_RED = '\033[0;41m' | |
BG_GREEN = '\033[0;42m' | |
BG_YELLOW = '\033[0;43m' | |
BG_BLUE = '\033[0;44m' | |
BG_MAGENTA = '\033[0;45m' | |
BG_CYAN = '\033[0;46m' | |
BG_WHITE = '\033[0;47m' | |
BG_LRED = '\033[1;41m' | |
BG_LGREEN = '\033[1;42m' | |
BG_LYELLOW = '\033[1;43m' | |
BG_LBLUE = '\033[1;44m' | |
BG_LMAGENTA = '\033[1;45m' | |
BG_LCYAN = '\033[1;46m' | |
BG_LWHITE = '\033[1;47m' | |
# ------------------------------------- | |
BOLD = '\033[1m' | |
UNDERLINE = '\033[4m' | |
INVISIBLE = '\033[08m' | |
REVERCE = '\033[07m' # Invert text&bg color | |
BG_DEFAULT = '\033[49m' | |
COLOR_DEFAULT = '\033[39m' | |
RESET = '\033[0m' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment