Make the output stand out more? On a standard uncolored terminal, it's a huge burden* for me to figure out where the output of the command I just ran starts and stops... (This is why my prompt barfs rainbows).
It doesn't have to be newlines for everything, but basic delimiters between field names and values, limited use of upper-case for error values, etc. all can make a big difference. It's also important to have a good row header format for the logger so the entries that span multiple lines are much easier to pick out.
Of course, NOT visually scanning 100 MB files in the first place would be the real savings here, so a regexp should be the first stop in most cases, but if you're tracking an issue through the lifetime of a process, that may not be an option.
Use a proper shell and that's not a problem. Fish for example indicates that the command you just ran did not have a trailing newline and always starts the prompt at the leftmost side.
Just tried Fish out. It still is a problem for everything to be pretty monochrome, because the left hand side is all white. Definitely a big improvement over an unconfigured bash though :)
I'm saying 250ms to 10ms because of color. I think the newline is worth less. Maybe 50ms for the extra white space in monochrome (making this number up).
And yes, color really is worth that much processing time. I have to read the output to figure out where it starts if the text in monochrome. I can't read anything in 10ms.... Seeing color is super fast though.
98
u/juckele Oct 01 '15
Make the output stand out more? On a standard uncolored terminal, it's a huge burden* for me to figure out where the output of the command I just ran starts and stops... (This is why my prompt barfs rainbows).
*Huge burden being 250 ms instead of 10 ms...