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)
def logC(text): writeln(formatC(text, '-', 1, width))
def writeC(text, fill='-'): writeln(formatC(text, fill, 1, width))