# git log, outputs something weird for colors

4 messages from 2009-01-12 to 2009-01-12. Participants: mark, Jacob Helwig.
Thread: https://gitlist.dev/t/17125

## mark, 2009-01-12 21:51

Subject: git log, outputs something weird for colors
Message-ID: <82fa9e310901121351y22feaf21rfb880bcd0d6cb1a3@mail.gmail.com>
URL: https://gitlist.dev/e/82fa9e310901121351y22feaf21rfb880bcd0d6cb1a3%40mail.gmail.com

```
hi
i am using kde konsole, and i am getting weird output for colors, for
example for git log i get the following output


git log
ESC[33mcommit 8b918256d944221f741e5d7300873810e31466a6ESC[m


settings in my bash and git.

export | grep -i term
declare -x TERM="xterm-256color"


~/.gitconfig
[color]
 branch = auto
 diff = auto
 status = auto

do you know what is wrong?
thanks

```

## Jacob Helwig, 2009-01-12 22:28

Subject: Re: git log, outputs something weird for colors
Message-ID: <8c9a060901121428j37ff6699g7af264f79829b6de@mail.gmail.com>
URL: https://gitlist.dev/e/8c9a060901121428j37ff6699g7af264f79829b6de%40mail.gmail.com
In-Reply-To: <82fa9e310901121351y22feaf21rfb880bcd0d6cb1a3@mail.gmail.com>

```
On Mon, Jan 12, 2009 at 13:51, mark <markkicks@gmail.com> wrote:
> hi
> i am using kde konsole, and i am getting weird output for colors, for
> example for git log i get the following output
>
>
> git log
> ESC[33mcommit 8b918256d944221f741e5d7300873810e31466a6ESC[m
>
>
> settings in my bash and git.
>
> export | grep -i term
> declare -x TERM="xterm-256color"
>
>
> ~/.gitconfig
> [color]
>  branch = auto
>  diff = auto
>  status = auto
>
> do you know what is wrong?
> thanks
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

I don't have any problems with Konsole and git's coloring, but my TERM
is set to "xterm", not "xterm-256color".

-Jacob

```

## mark, 2009-01-12 22:33

Subject: Re: git log, outputs something weird for colors
Message-ID: <82fa9e310901121433p67f7bb3ai330439bf3c00df26@mail.gmail.com>
URL: https://gitlist.dev/e/82fa9e310901121433p67f7bb3ai330439bf3c00df26%40mail.gmail.com
In-Reply-To: <8c9a060901121428j37ff6699g7af264f79829b6de@mail.gmail.com>

```
On Mon, Jan 12, 2009 at 2:28 PM, Jacob Helwig <jacob.helwig@gmail.com> wrote:
> On Mon, Jan 12, 2009 at 13:51, mark <markkicks@gmail.com> wrote:
>> hi
>> i am using kde konsole, and i am getting weird output for colors, for
>> example for git log i get the following output
>>
>>
>> git log
>> ESC[33mcommit 8b918256d944221f741e5d7300873810e31466a6ESC[m
>>
>>
>> settings in my bash and git.
>>
>> export | grep -i term
>> declare -x TERM="xterm-256color"
>>
>>
>> ~/.gitconfig
>> [color]
>>  branch = auto
>>  diff = auto
>>  status = auto
>>
>> do you know what is wrong?
>> thanks
>> --
>> To unsubscribe from this list: send the line "unsubscribe git" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>
> I don't have any problems with Konsole and git's coloring, but my TERM
> is set to "xterm", not "xterm-256color".

even xterm does not work for me!
but git status, and git branch give the correct color. the problem is
only with git log!
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

```

## mark, 2009-01-12 22:38

Subject: Re: git log, outputs something weird for colors
Message-ID: <82fa9e310901121438t7f525c60nfc91bcdc89c97e26@mail.gmail.com>
URL: https://gitlist.dev/e/82fa9e310901121438t7f525c60nfc91bcdc89c97e26%40mail.gmail.com
In-Reply-To: <82fa9e310901121433p67f7bb3ai330439bf3c00df26@mail.gmail.com>

```
On Mon, Jan 12, 2009 at 2:33 PM, mark <markkicks@gmail.com> wrote:
> On Mon, Jan 12, 2009 at 2:28 PM, Jacob Helwig <jacob.helwig@gmail.com> wrote:
>> On Mon, Jan 12, 2009 at 13:51, mark <markkicks@gmail.com> wrote:
>>> hi
>>> i am using kde konsole, and i am getting weird output for colors, for
>>> example for git log i get the following output
>>>
>>>
>>> git log
>>> ESC[33mcommit 8b918256d944221f741e5d7300873810e31466a6ESC[m
>>>
>>>
>>> settings in my bash and git.
>>>
>>> export | grep -i term
>>> declare -x TERM="xterm-256color"
>>>
>>>
>>> ~/.gitconfig
>>> [color]
>>>  branch = auto
>>>  diff = auto
>>>  status = auto
>>>
>>> do you know what is wrong?
>>> thanks
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe git" in
>>> the body of a message to majordomo@vger.kernel.org
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>>
>>
>> I don't have any problems with Konsole and git's coloring, but my TERM
>> is set to "xterm", not "xterm-256color".
>
> even xterm does not work for me!
> but git status, and git branch give the correct color. the problem is
> only with git log!
>
this helped!

http://git.or.cz/gitwiki/GitFaq#head-678310c22f3e4a233d348bdde55a3e4cb7368ee9

i had LESS=-Q set on my .bashrc, commenting that out produces nice
colors for git log!
thanks all!
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

```
