pip install ansi2txt
gcloud --help | ansi2txt
ANSI, ANSI escape code, ASCII escape character
Advertising: