Process ANSI escape codes before piping
- by Tiddo
I'm trying to pipe the output of a script (Mocha) to another script. However there is one problem: Mocha generates quite a few ansi escape characters to update the screen on the fly. These characters are also send through the pipe.
Is there a way to process the ansi sequence such that the output is the same as the final output to the screen? I do…