def scrub_output(output):
    ansi_escape = re.compile(r'\x1b[^m]*m')
    return ansi_escape.sub('', output)
remove all ANSI control sequences from the output
dataset/ETHPy150Open owtf/owtf/framework/lib/general.py/scrub_output