I've been battling it out with this 256-colour terminal malarkey and I just can't get decent colour displays in a terminal. I'm using ubuntu-server with openssh and zsh. I have tried accessing the machine from both Windows (Putty) and RHEL (gnome-terminal) and neither of them display the colours properly.
I double checked that...
- $TERM is set to xterm-256color
- There exists a file in /lib/terminfo/x/xterm-256color
Whenever I use a vim or oh-my-zsh theme, the colours are all ANSI based. What am I missing?
EDIT: Oh I should also say that when i do
echo "$FG[214]Blah"
Then it displays using 256 colours. Neither the prompt nor vim displays the colours I expect.
TERMtoxterm-256colorvarious programs may require additional configuration to tell them to take advantage of the extended color palette. What terminfo file does theinfocmpcommand say you’re using? – Chris Page Jan 5 at 20:42