I mainly use one of my raspberry pi headlessly.
So, I’m using putty from one laptop to connect to it with ssh.
Everything works fine but I want to add some colours… and here is the issue:
my $TERM variable is only xterm and when I look at the documentation they say that we can check this using a command such as infocmp:
Finally it was easier than I thought. The problem comes from PuTTY, as @linux-aarhus said, but you can’t see the variable linked to the terminal settings when you have a session already registered and opened.
In the Data category from Connection section, check you have set Terminal-type string to xterm-256color (as show below)