added colours and made them configurable
This commit is contained in:
1 parent
dc51287f7b
commit
486f9d1017
4 files changed
+50
-14
No files matched your search
@@ -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
|
||||
Binary file not shown.
Reference in new issue
Block a user