On 02/21/2012 08:16 AM, Carsten Palleske wrote: > Hi, > I use tee on W7 pro. > tee reports itself as follows: > Usage: tee [OPTION]... [FILE]...
> I use tee often to duplicate output of several build processes. This > output happens to be coloured. However - once output is passed through > tee, the colours disappear. I would be happy to see preserved colours tee doesn't adjust the data. I'm guessing what's happening is the process generating the colors is doing so conditionally upon being connected to a tty. This is fine as long as there is a way to override it. Consider: ls --color=always | tee - ls --color=auto | tee - cheers, Pádraig. p.s. if you want to display the output logs containing ansi color codes etc. on a web page you can process using a tool like: http://www.pixelbeat.org/scripts/ansi2html.sh
