Skip to content

Commit

Permalink
Making it able to use coloring in windows too ;)
Browse files Browse the repository at this point in the history
  • Loading branch information
D4Vinci authored Jan 31, 2017
1 parent 2b39192 commit bd55850
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions sublist3r.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,21 @@

# Console Colors
if is_windows:
# use no terminal colors on windows
G = Y = B = R = W = G = Y = B = R = W = ''
# Windows deserve coloring too :D
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:
G = '\033[92m' # green
Expand Down

0 comments on commit bd55850

Please sign in to comment.