How to remove the ^[[1m ^[[22m ^[[4m ^[[24m characters while keeping the newline?
how to properly log the output of a console program that frequently updates "parts" of the screen, resulting in a messy log file?