script's typescript output is littered with ANSI strings
Regardless which distro I use, ANSI sequences litter typescript files, which makes them hard to read, and hard to copy and paste from. Is there a way to have the ANSI sequences omitted? If not, is there some simple way to strip them? Is there a better utility to capture screen output?
|
Quote:
Quote:
What exactly is happening? Where do these files come from, how are you reading them, what "ANSI sequences" are you seeing, and what put those sequences in there? |
Code:
# which script Quote:
|
I see.
The way I understand it, this is the normal and desired behaviour. Problem: I cannot replay the typescript with "scriptreplay typescript". In any case, 'cat typescript' works as expected. Also take a look at this: https://unix.stackexchange.com/quest...-script-output |
That's a long, involved thread. "scriptreplay typescript" here always generates a line 1 unexpected format error. Redirecting cat output to a file doesn't seem to produce much less ansi string litter.
|
All times are GMT -5. The time now is 01:29 AM. |