My favorites | Sign in
Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 124: ANSI control chars displayed in console
2 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Mar 2009
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by sschuberth, Jul 01, 2008
What steps will reproduce the problem?

1. In a non-up-to-date local repository, issue a "git fetch".

What is the expected output? What do you see instead?

An example output I get is as follows:

$ git fetch
remote: Generating pack...←[K
remote: Done counting 208 objects.←[K
remote: Result has 91 objects.←[K
remote: Deltifying 91 objects...←[K
remote:  100% (91/91) done←[K1) done←[K
remote: Total 91 (delta 63), reused 9 (delta 8)←[K
Unpacking objects: 100% (91/91), done.

As you can see, several "←[K" ANSI sequences are displayed at the end of
the lines.

What version of the product are you using? On what operating system?

$ git --version
git version 1.5.6.1062.g7b17c

Please provide any additional information below.

The problem is that the MSYS Bash console does not provide ANSI emulation
like available under Linux. Either ANSI should be disabled for msysgit, or
msysgit should be bundled with an ANSI driver (not a trivial task; I tried
to look into this), or "git fetch" should have built-in support for colored
console output under Windows like "git diff --stat" now has.
Comment 1 by sschuberth, Aug 08, 2008
FYI, ANSI sequences also appear when merging:

$ git merge origin/hba/tcl-saveFileTypeInfo
Merge made by recursive.
 Amira/HxData.cpp←[m |   21 ←[32m+++++++++++++++++++++←[m
 1 files changed, 21 insertions(+), 0 deletions(-)←[m
Comment 2 by johannes.schindelin, Mar 10, 2009
Peter provided the first part (a fix for ←[m), and Hannes and me are in the process
of hashing out the ←[K part.
Status: Started
Comment 3 by johannes.schindelin, Mar 22, 2009
This has been fixed in git.git, and will be part of our next release!
Status: Fixed
Sign in to add a comment

Hosted by Google Code