I use zsh with oh-my-zsh and xfce4-terminal in XUbuntu 14.04.

If I configure xfce-terminal with xterm-256color, like this:

xfce4-terminal xterm-256color

I get this error:

*** VTE ***: Failed to load terminal capabilities from '/etc/termcap'

If I leave the default setting, my terminal has 8 colors:

$ echotc Co 

$ echo $TERM

If I export, like this:

$ export TERM=xterm-256color

I get proper values and it seems that I have truly 256 colors:

$ echo $TERM

$ echotc Co

But my zsh prompt doesn't show proper colors. For instance with agnoster theme:


I see proper colors in the output commands, but only 8 colors in the zsh prompt.

But using terminator I see all correct with xterm-256color:


The most funny part, is that terminator with only 8 colors, shows theme properly:


What I need to configure to continue using xfce4-terminal with 256 colors and proper theme colors?

  • That script uses ANSI escape sequences though. That means that the terminal does support 256 colors, however Zsh doesn't render colors using those escape sequences AFAIK. Note also that in Terminator the time on the left side of the prompt is not shown. It might just be that the colors are rendered slightly differently in xfce-terminal and Terminator, enough to hide the dark grey on xfce-terminal and the light grey on Terminator. Try to change the background color to something totally different (try e.g. red). Can you see the full prompt in both xfce-terminal and Terminator that way? – kos Apr 8 '16 at 17:53
  • @Terrance with Tango I see better prompt. so strange... but it is not like in terminator. I like how it gets with "Solarized (dark)" colors preset. – logoff Apr 8 '16 at 18:26
  • @Terrance horrible results and less pretty colors... – logoff Apr 8 '16 at 18:32
  • @Terrance the issue is in the zsh prompt colors not in the terminal itself – logoff Apr 8 '16 at 18:44
  • Fair enough. Just another thought, what if you add export TERM=xterm-256color to the ~/.zshrc file so it loads when you launch the xfce-terminal? – Terrance Apr 8 '16 at 18:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.