calvinmorrison parent
If you have a tool users are pipe data into you should be able to handle terminal escape sequences. My two cents.
Not feasible. What happens if the actual data you're trying to process happens to contain a sequence of bytes which could be interpreted as an escape sequence? Now you've ruined the user's data by modifying it.