Some programs make beautiful progress bars and more using ANSI escape sequences. It's good.
What is not nice is that if I put this type of output in a file and then try to look at it, it will fill with strange escape sequences.
Is there a way to disable all ANSI codes during registration?
I usually write the output of a script as follows:
./script >> /tmp/output.log
Try:
$ TERM=dumb ./script >> /tmp/output.log
, , ANSI script, . , , , , libncurses , , TERM, .
libncurses
TERM