Making it able to use coloring in windows too ;)
This commit is contained in:
parent
2b39192bee
commit
bd558502bb
17
sublist3r.py
17
sublist3r.py
|
@ -42,8 +42,21 @@ is_windows = sys.platform.startswith('win')
|
||||||
|
|
||||||
# Console Colors
|
# Console Colors
|
||||||
if is_windows:
|
if is_windows:
|
||||||
# use no terminal colors on windows
|
# Windows deserve coloring too :D
|
||||||
G = Y = B = R = W = G = Y = B = R = W = ''
|
G = '\033[92m' # green
|
||||||
|
Y = '\033[93m' # yellow
|
||||||
|
B = '\033[94m' # blue
|
||||||
|
R = '\033[91m' # red
|
||||||
|
W = '\033[0m' # white
|
||||||
|
try:
|
||||||
|
import win_unicode_console , colorama
|
||||||
|
win_unicode_console.enable()
|
||||||
|
colorama.init()
|
||||||
|
#Now the unicode will work ^_^
|
||||||
|
except:
|
||||||
|
print("[!] Error: Coloring libraries not installed ,no coloring will be used [Check the readme]")
|
||||||
|
G = Y = B = R = W = G = Y = B = R = W = ''
|
||||||
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
G = '\033[92m' # green
|
G = '\033[92m' # green
|
||||||
|
|
Loading…
Reference in New Issue