I had this issue many moons ago, which lead to my discovery of the ansifilter package:
> # emerge -pv ansifilter | ansifilter > > These are the packages that would be merged, in order: > > Calculating dependencies . ... done! > [ebuild R ] app-text/ansifilter-2.15::gentoo USE="qt5" 0 KiB > > Total: 1 package (1 reinstall), Size of downloads: 0 KiB It strips all the terminal escape chars which are how applications do the color in their terminal output. Very handy when combined with pastebin utilities. Cheers, Robert. > >