Since KDE 3.5.4 the konsole has 256 color support. You don’t believe it? Test 256 color support in your terminal:
echo -e "\e[38;5;196mred\e[38;5;46mgreen\e[38;5;21mblue\e[0m"
If the words are displayed in the right colours, all is well.
Not you have 256 and you want to use it, sure. First we want vim with 256 colors! Goto the konsole configuration and set the TERM variable in the “Session” tab to xterm-256color. If you’re using screen, then you have to add
to your “screenrc”-file.
Maybe you recognize that your “ls” doesn’t colorize the output anymore. The reason is that there is no entry for xterm-246color and screen-256color in /etc/DIR_COLORS.
The last problem I had to fix was the color bug with vim and screen. If vim has set a background color and you exit vim, your console still use the colors set by vim. It is a weird problem and currently I’ve fixed it with an autocmd:
autocmd VimLeave * :set term=screen
You can find a screenshot of my konsole with 256color vim here.