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
RDRogan Dawes <lists@dawes.za.net>
Date
Aug 15, 2007, 22:04 UTC
Message-ID
<46C37863.4020203@dawes.za.net>
In-Reply-To
<7vsl6ko51b.fsf@gitster.siamese.dyndns.org>
Junio C Hamano wrote:
Show 9 quoted lines
> Rogan Dawes <lists@dawes.za.net> writes:
> 
>> Users that *do* need to use rxvt or SSH should simply disable the
>> color mode, or alternatively, use the cygwin version. Color, while
>> useful, is hardly critical functionality.
> 
> Heh, that almost suggests that the native Windows command.com
> support can disable the color without upsetting anybody ;-)
> 
If that is the easiest way, yes.

I *do* think that trying to get color working on the DOS cmdline is a worthy goal. I just don't think it is worth overcomplicating the issue and trying to handle rare corner cases such as someone SSHing into a Windows box, or running CMD inside rxvt.

One approach that might be more compatible with the existing escape code approach is to define the appropriate ANSI color escape sequences. Ah, a bit more googling shows that cmd.exe doesn't handle ANSI sequences in Windows NT and later.

Regards,
Rogan
Previous: Junio C HamanoNext: Rogan Dawes
Message 9 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.