Skip to content

Commit baa377f

Browse files
committed
v0.12.0-alpha
- Added more colours
1 parent 9eceb8a commit baa377f

File tree

1 file changed

+72
-1
lines changed

1 file changed

+72
-1
lines changed

server/colour.py

Lines changed: 72 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def banner():
77
`--' .-' / `--' '--'`--' `--' `--'
88
`---'
99
""") + "(" +
10-
Colour.blue("v0.11.1-alpha") + ")" +
10+
Colour.blue("v0.12.0-alpha") + ")" +
1111
Colour.yellow(" Author: safesploit") +
1212
"\n")
1313

@@ -29,4 +29,75 @@ def yellow(str):
2929
def blue(str):
3030
return "\033[94m" + str + "\033[0m"
3131

32+
# TODO
33+
# The following are untested values
34+
35+
@staticmethod
36+
def purple(str):
37+
return "\033[95m" + str + "\033[0m"
38+
39+
@staticmethod
40+
def cyan(str):
41+
return "\033[96m" + str + "\033[0m"
42+
43+
@staticmethod
44+
def white(str):
45+
return "\033[97m" + str + "\033[0m"
46+
47+
@staticmethod
48+
def black(str):
49+
return "\033[90m" + str + "\033[0m"
50+
51+
52+
@staticmethod
53+
def bright_green(str):
54+
return "\033[1;92m" + str + "\033[0m"
55+
56+
@staticmethod
57+
def bright_yellow(str):
58+
return "\033[1;93m" + str + "\033[0m"
59+
60+
@staticmethod
61+
def bright_blue(str):
62+
return "\033[1;94m" + str + "\033[0m"
63+
64+
@staticmethod
65+
def bright_purple(str):
66+
return "\033[1;95m" + str + "\033[0m"
67+
68+
@staticmethod
69+
def bright_cyan(str):
70+
return "\033[1;96m" + str + "\033[0m"
71+
72+
@staticmethod
73+
def bright_white(str):
74+
return "\033[1;97m" + str + "\033[0m"
75+
76+
@staticmethod
77+
def bg_red(str):
78+
return "\033[41m" + str + "\033[0m"
79+
80+
@staticmethod
81+
def bg_green(str):
82+
return "\033[42m" + str + "\033[0m"
83+
84+
@staticmethod
85+
def bg_yellow(str):
86+
return "\033[43m" + str + "\033[0m"
87+
88+
@staticmethod
89+
def bg_blue(str):
90+
return "\033[44m" + str + "\033[0m"
91+
92+
@staticmethod
93+
def bg_purple(str):
94+
return "\033[45m" + str + "\033[0m"
95+
96+
@staticmethod
97+
def bg_cyan(str):
98+
return "\033[46m" + str + "\033[0m"
99+
100+
@staticmethod
101+
def bg_white(str):
102+
return "\033[47m" + str + "\033[0m"
32103
# print(banner())

0 commit comments

Comments
 (0)