Is there a way to set different
$TERM for different terminal emulators. For example if I am in xterm the
$TERM will read
xterm-256color, in urxvt
urxvt-256color, in sakura
xterm-256color and in
There is no general method. As observed by vinc17, different terminal emulators let you configure the
TERM value in different ways, if at all.
You can drop terminfo configuration files into your home directory, organized as
~/.terminfo/INITIAL-LETTER/VALUE. For example, if you wish for
xterm to point to the 256-color entry, on a typical machine, you could do
mkdir -p ~/.terminfo/x ln -s /usr/share/terminfo/x/xterm-256color ~/.terminfo/x/xterm
You can do this in your terminal configuration. For instance, with Xterm, this can be done via the X resources. You can do this via the Xterm app-defaults:
or via a
-tn xterm-256color option. This is similar for rxvt.