Esempio n. 1
0
def debug():
    text = formatC('DEBUG OUTPUT', '#', 1, width)
    text = re.sub(r'(#+)',r'\033[31m\1\033[0m',text)
    writeln(text)
    traceback.print_exc()
    text = formatC('END DEBUG OUTPUT', '#', 1, width)
    text = re.sub(r'(#+)',r'\033[31m\1\033[0m',text)
    writeln(text)
Esempio n. 2
0
def logC(text):
    writeln(formatC(text, '-', 1, width))
Esempio n. 3
0
def writeC(text, fill='-'):
    writeln(formatC(text, fill, 1, width))