[kde] kde konsole color settings in terminal

Boyd Stephen Smith Jr. bss at iguanasuicide.net
Mon Jan 12 22:18:48 GMT 2009


On Monday 2009 January 12 15:35:08 mark wrote:
>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

Looks like konsole isn't interpreting the color codes.  However, it also looks 
like git doesn't use termcap/terminfo/etc. to determine the correct way to 
write colors for your terminal and just defaults to ANSI.

Do you get odd output from:
grep --color=always o <<< foo
or are the "o"s properly colored red?

>settings in my bash and git.
>
>export | grep -i term
>declare -x TERM="xterm-256color"

So you have a /usr/share/terminfo/k/konsole-256color file?  If so, it might be 
better to use TERM="konsole-256color".

I never use 256 color mode, so I'm not clear on how that works.  However, what 
git is outputting look more like ANSI 16-color codes.

Does this work as you expect in other terminal applications (like rxvt or 
xterm or gnome-terminal) with the same settings for TERM?

Just to let you know, it works here (openSUSE 11.1) with Konsole 1.6.6 (KDE 
3.5.10) running git 1.6.0.2 inside screen 4.00.02
-- 
Boyd Stephen Smith Jr.                     ,= ,-_-. =. 
bss at iguanasuicide.net                     ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy           `-'(. .)`-' 
http://iguanasuicide.net/                      \_/     
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde/attachments/20090112/a519826c/attachment.sig>


More information about the kde mailing list