How to ensure your terminal is using 256 colors

12 Sep 2015

Add this to .bashrc

export TERM=xterm-256color

so that

tput colors

says 256, and that

msgcat --color=test

shows many pretty colors.