[2019-08-11 18:08] Jesse Smith <jsm...@resonatingmedia.com> > > > I'd like to point out though that with such an option enabled, it is > > > going to result in some weird output. If all escape sequences are > > > printed to the file, tools like "less" can handle it, but other (more > > > raw) text manipulation tools such as "head" and "tail" will end up > > > mangling the lines. > > > > No. When you output raw escape sequences on terminal, they will be > > interpreted by terminal, so `head', `tail' and `grep' output will be > readable and colored. Pager `less' with -R option also interpret escape > symbols. > > I wasn't speaking theoretically.
No offence intended. Sorry if I sounded harsh. > I tried it and the "head", "cat" and "tail" commands mangle the lines > of the log file when escape sequences are not escaped. Output from > "less" is clean though and looks correct. Interesting. Can you please send text that shows this behaviour? > > Looks like your terminal interpret '\r' incorrectly. > > What makes you think that? The lines look exactly as I would expect them > to look. I encountered terminal emulator that do so. Can't recall the name right now, unfortunately. -- Note, that I send and fetch email in batch, once in a few days. Please, mention in body of your reply when you add or remove recepients.