git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [msysGit] Re: Need your help with MinGW Issue 17: --color options don't work (produce garbage)

From
DKDmitry 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
Previous: Reece DunnNext: Johannes Schindelin
Message 5 of 10 in “Need your help with MinGW Issue 17: --color options don't work (produce garbage)”
  1. Dmitry KakurinAug 15, 2007
  2. Reece DunnAug 15, 2007
  3. Dmitry KakurinAug 15, 2007
  4. Reece DunnAug 15, 2007
  5. Dmitry KakurinAug 15, 2007
  6. Johannes SchindelinAug 15, 2007
  7. Rogan DawesAug 15, 2007
  8. Junio C HamanoAug 15, 2007
  9. Rogan DawesAug 15, 2007
  10. Rogan DawesAug 21, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.