Difference between revisions of "ANSI escape code"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
[[sed -e]] 's/\x1b\[[0-9;]*m//g' | [[sed -e]] 's/\x1b\[[0-9;]*m//g' | ||
[[gcloud --help]] | [[sed -e]] 's/\x1b\[[0-9;]*m//g' | [[gcloud --help]] | [[sed -e]] 's/\x1b\[[0-9;]*m//g' | ||
+ | |||
+ | [[pip install ansi2txt]] | ||
+ | [[gcloud --help]] | ansi2txt | ||
+ | |||
* [[ASCII escape character]] | * [[ASCII escape character]] | ||
* [[gcloud --help]] | * [[gcloud --help]] | ||
+ | * [[Lines with a single space]] | ||
{{ANSI}} | {{ANSI}} |
Latest revision as of 13:31, 20 December 2023
sed -e 's/\x1b\[[0-9;]*m//g' gcloud --help | sed -e 's/\x1b\[[0-9;]*m//g'
pip install ansi2txt gcloud --help | ansi2txt
Advertising: