Depends on the shell. Which login shell are you using?How do I globally set TERM=xterm-256color?
/.cshrc or /.profile
Users added with adduser(8) have /bin/sh as default. To make sure runWhatever is the default....
echo $SHELL
.export TERM=xterm-256color
in /etc/profile.setenv TERM xterm-256color
in /etc/csh.cshrc cap_mkdb /etc/login.conf
In case it's csh(1):setenv TERM xterm-256colors
in /etc/csh.cshrc
% echo $0
/bin/tcsh
% bash
[grahamperrin@mowa219-gjp4-8570p-freebsd ~]$ eval `tset -Q -s -m xterm:xterm-256color`
bash: setenv: command not found
[grahamperrin@mowa219-gjp4-8570p-freebsd ~]$ echo $0
bash
[grahamperrin@mowa219-gjp4-8570p-freebsd ~]$ echo $SHELL
/bin/tcsh
[grahamperrin@mowa219-gjp4-8570p-freebsd ~]$ exit
exit
%
Globally ?How do I globally set TERM=xterm-256color?
ttyv0 "/usr/libexec/getty Pc" xterm-256color onifexists secure
alias ls='ls --color'