Bug 212145 - set TERM to support 256 colors
Summary: set TERM to support 256 colors
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-28 08:17 UTC by Caleb Cushing
Modified: 2016-11-24 16:32 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Caleb Cushing 2009-10-28 08:17:05 UTC
Version:            (using KDE 4.3.2)
OS:                Linux
Installed from:    Unlisted Binary Package

some apps like vim can actually use 256 colors on the cli however many terminals don't support this and as such it is not the default. some themes in vim will use 256 color's if TERM=xterm-256color. by default in konsole you only get 8 colors if it was set to xterm-256color you'd get 256 colors where applicable. Most users aren't aware this is possible.

there may be a good reason to have this set to xterm that I'm not aware of.
Comment 1 Caleb Cushing 2010-06-02 00:38:44 UTC
bump
Comment 2 Magnus Bergmark 2011-01-11 19:47:20 UTC
*** This bug has been confirmed by popular vote. ***
Comment 3 Kurt Hindenburg 2011-10-09 18:40:57 UTC
Every terminal I found uses xterm except for MacOSX terminal.app (which is set to xterm-256colors and allows the user to pick from 6 different terms).

Perhaps putting a combo box under the 'Environment' box would allow greater visibility.

I would be more inclined to allow the user to change it easily instead of having to deal w/ verifying the system has it (on every platform/distro).

Any patches would be appreciated.
Comment 4 Egmont Koblinger 2016-11-19 22:05:32 UTC
Coming from bug 371919: I'm strongly in favor of switching the default to xterm-256color. It's a cool and useful feature, I see no reason to hold it back from users.

In vte (gnome-terminal and friends) we've made this change 1.5 years ago (in vte-0.40). A few people complained on askubuntu and friends that their vim color scheme changed and they prefered the old one, they are happy with the solution that they revert to TERM=xterm. We haven't heard about anything more serious issue than this.

Most people are probably just silently happy to have more colors available out of the box.
Comment 5 Rex Dieter 2016-11-20 02:25:49 UTC
For what it's worth, fedora has defaulted to using xterm-256color for a few releases, see also:
http://pkgs.fedoraproject.org/cgit/rpms/konsole5.git/tree/konsole-xterm-256color.patch
Comment 6 Kurt Hindenburg 2016-11-24 16:29:43 UTC
Git commit 2671800b084cf89f1a91c6b3fdf93eb3b8078672 by Kurt Hindenburg.
Committed on 24/11/2016 at 16:29.
Pushed by hindenburg into branch 'master'.

set default TERM=xterm-256color

Change TERM=xterm to xterm-256color
Related: bug 371919

M  +1    -1    src/Profile.cpp
M  +1    -1    src/Pty.cpp

https://commits.kde.org/konsole/2671800b084cf89f1a91c6b3fdf93eb3b8078672
Comment 7 Kurt Hindenburg 2016-11-24 16:32:44 UTC
Git commit d5cac9d2f1a1225d19c0be6b51e3db6e4aaed3d4 by Kurt Hindenburg.
Committed on 24/11/2016 at 16:32.
Pushed by hindenburg into branch 'Applications/16.12'.

set default TERM=xterm-256color

Change TERM=xterm to xterm-256color
Related: bug 371919
(cherry picked from commit 2671800b084cf89f1a91c6b3fdf93eb3b8078672)

M  +1    -1    src/Profile.cpp
M  +1    -1    src/Pty.cpp

https://commits.kde.org/konsole/d5cac9d2f1a1225d19c0be6b51e3db6e4aaed3d4