The Script command issue

Solution 1:

ansi2txt can be used to filter out the color escape codes.

Fore more options see: https://stackoverflow.com/q/6534556/724406