From: Dmitry Kakurin Date: Wed, 15 Aug 2007 22:07:18 GMT Subject: Re: [msysGit] Re: Need your help with MinGW Issue 17: --color options don't work (produce garbage) Message-ID: In-Reply-To: <3f4fd2640708150131o7578c2efy806891fc3def7429@mail.gmail.com> On 8/15/07, Reece Dunn wrote: > I don't believe that MinGW has got this working for cat, that is why > one that supports colours on Windows needs to be written. MSys' cat does support colors even when I run it from cmd.exe. I've looked at sources for cat on mingw.sourceforge.com and (as expected) there is no code to handle esc-sequences. That would be insane - too many utilities like ls, diff, cat, less etc. do that. So there is obviously a library for this. I've tried to "parse" makefiles for cat, but they are so huge and I know about gcc/make on Unix so little that I was unable to find the secret sauce. I've also asked this question on MinGW list so I'm waiting for reply. -- - Dmitry