fixed colors on windows (by removing them, haha)

--HG--
branch : stargen
This commit is contained in:
cecilkorik 2017-05-05 12:46:33 -06:00
parent f0c3c10b6d
commit bcfc4fc163

View file

@ -3,6 +3,10 @@ import math
import os, sys
def color(str, col, bright=0, reset=1):
if os.name != "posix":
"color not supported, am too lazy"
return str
ansi = {'R': '31', 'X': '30', 'G': '32', 'Y': '33', 'B': '34', 'M': '35', 'C': '36', 'W': '37'}
b = '1' if bright else '0'
a = '\x1b[%s;%sm' % (b, ansi[col.upper()])