It would be great if tee would allow this: tee preserves isatty(), thus the caller thinks this is a real terminal and outputs ansi color codes.
Tee displays the ansi colors on the screen. The output to the file gets filtered by tee (remove ansi color codes). I would make this optional since I guess the result will be only 99% equal to the old result. Example: git diff | tee --show-colors git.diff The user sees the color, and the file "git.diff" contains the output with the color codes removed. Related: http://superuser.com/questions/352697/preserve-colors-while-piping-to-tee Regards, Thomas Güttler -- Thomas Guettler http://www.thomas-guettler.de/
