added colours and made them configurable

This commit is contained in:
benjamyn committed 2018-03-20 03:42:07 +11:00
1 parent dc51287f7b
commit 486f9d1017
4 files changed
+50 -14

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
# Adds colours class
class bcolours:
RED = "\033[1;31m"
BLUE = "\033[1;34m"
CYAN = "\033[1;36m"
GREEN = "\033[0;32m"
RESET = "\033[0;0m"
BOLD = "\033[;1m"
REVERSE = "\033[;7m"
def getColour(colour):
colour = colour.lower()
if colour == "red":
return bcolours.RED
if colour == "blue":
return bcolours.BLUE
if colour == "cyan":
return bcolours.CYAN
if colour == "green":
return bcolours.GREEN
if colour == "reset":
return bcolours.RESET
BIN
View File
Binary file not shown.