def ansi_width(text):
    return len(ansi_strip(text))
Calculate the effective width of the given text (ignoring ANSI escape sequences).
dataset/ETHPy150Open xolox/python-humanfriendly/humanfriendly/terminal.py/ansi_width