Registered Member
|
Does Konsole support 256 color terminal? I tried to run Midnight Commander with a 256 color theme in Konsole but it failed, claiming that the terminal doesn't support 256 colors. I didn't find any obvious settings related to this.
|
Registered Member
|
OK, just figured this out. One needs to set TERM explicitly to konsole-256color.
For example:
TERM=xterm-256color is another option. |
Administrator
|
Hm - no additional settings should be required. Prior to setting TERM manually, what is it set to on your system?
The value is "xterm" on my system - and I have "Linux Colours" selected as my Konsole colour profile.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
It was set simply to "xterm" before. vim and mc couldn't use 256 colors in such mode (I use custom Konsole colors profile, but it doesn't work with Linux colors as well when TERM is set to "xterm", I just tested it).
My Konsole version (current Debian testing):
I suspect it depends on some system defaults in defining the terminal. I see this in /lib/terminfo/x/:
May be openSUSE defines xterm as a symlink to xterm-256color or something. |
Administrator
|
I'm afraid not - and it seems like xterm and xterm-256color are different here. I did notice a comment in /etc/profile however, which references needing to set COLORTERM to "1" to make midnight commander work.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]