Convert script output with color code into plain text
In shell, you can record the cli interaction using the script
command, it will record the input to a 'typescript' file.
However, this file contains lots of contain characters, e.g. <Esc>[6m;
.
This cli tools remove the control characters, only preserving plain-text content.