Re: [msysGit] Re: Need your help with MinGW Issue 17: --color options don't work (produce garbage)
- From
- Dmitry Kakurin <dmitry.kakurin@gmail.com>
- Date
- Aug 15, 2007, 22:07 UTC
- Message-ID
- <a1bbc6950708151507l15de5e9br5a09f13ad21d7f41@mail.gmail.com>
- In-Reply-To
- <3f4fd2640708150131o7578c2efy806891fc3def7429@mail.gmail.com>
On 8/15/07, Reece Dunn <msclrhd@googlemail.com> 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