
Tried with: Terminator 0.97 and Ubuntu 14. You can add similar custom commands for Bash or in GNOME Terminal. uxterm might be an only symbolic link to xterm. 1 2 3 4 5 6 7 which xterm /usr/bin/xterm which uxterm /usr/bin/uxterm We know file locations. Environment Ubuntu 15.10 Investigate Files Let’s check files of xterm and uxterm. In the meanwhile, we can at least make sure that TERM is set to xterm-256color before a shell is invoked.įor example, in Terminator I do this by right-click -> Preferences -> Profiles -> Command -> Custom command and adding a env TERM=xterm-256color fish to set it before calling the Fish shell. What is the difference between xterm and uxterm. This is a well known problem and distributions are mulling over fixing it. We first need to identify that this problem lies in VTE and the GNOME-based terminals that use it. It will set its own terminal type in TERM and overrides your setting. Set by the XTerm program in the child processes that it spawns for terminal sessions. For example, xterm usually supports colors, but vt220 doesnt. However, this is a wrong solution because you are setting a terminal capability in a shell!Īlso, think what happens if you now run screen or tmux inside the shell. The TERM environment variable is its primary source of information. xterm is supposed to be a superset of vt220, in other words its like vt220 but has more features. For example, it can be set based on the value of COLORTERM which is set to gnome-terminal by GNOME Terminal. bashrc or similar shell initialization script.

vimrc is now setting t_Co erroneously to 256! Wrong solution 2Īnother common solution is to set TERM=xterm-256color in. vimrc to another computer and run Vim under the virtual terminal (VT) which supports only 8 colors, your. This is a crude solution because you are overriding the capability of Vim to automatically detect the terminal type and set colors based on that.

One common solution to this problem is to add set t_Co=256 to your. That is, it sets its t_Co variable to 8 instead of 256. So, if Vim sees xterm it reverts to using 8 colors, instead of 256 colors. Why is this important? Vim and other terminal programs decide how many colors to support based on TERM. Since they support 256 colors, TERM should actually be set to xterm-256color.

GNOME Terminal, Terminator and other terminal programs in X that are based on VTE set the TERM environment variable to xterm.
#Differences between xterm and pterm archive
📅 2015-Mar-18 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ colors, terminal ⬩ 📚 Archive Problem
