Strovent SystemsSign in
App guide

Get 256 colors and true color in Strovent Terminal SSH, Mosh and Telnet sessions

Programs choose colors from TERM, which Strovent Terminal sets from the Emulation choice. Pick the right one, check it with tput colors, and fix it on the host.

Strovent Terminal draws 256-color and 24-bit (true) color in VT sessions. Whether a program on the host uses them depends on the terminal type the app reports, because programs look up TERM to decide how many colors to send. See Colors: 16, 256 and true color and TERM and terminfo.

What the app reports

The Emulation setting of a VT profile sets the terminal type that the app sends to the host when the session starts, over SSH and over Telnet.

  • xterm-256color reports xterm-256color: 256 colors.
  • VT220 reports vt220 and VT100 reports vt100. Hosts describe both as having no color at all, so programs send none.

Over Telnet the name goes out in capital letters, for example XTERM-256COLOR.

A profile with no Emulation choice saved uses xterm-256color for SSH and Mosh and VT220 for Telnet. A new profile connects with Telnet until you change Connect with, so it starts with VT220. After you switch a profile to SSH or Mosh, check that the Emulation row shows xterm-256color: a choice that is already saved is kept.

In a Mosh session the terminal type comes from mosh-server, not from Emulation. The app starts mosh-server with 256 colors, so programs in a Mosh session see xterm-256color. See Mosh: how it works.

Check it

On the host, outside tmux and screen, run:

echo $TERM; tput colors

256 means programs can use 256 colors. 8 means 8, and -1 means none.

Get 256 colors

Open the profile, set Emulation to xterm-256color and connect again. The setting is sent when the session starts, so an open session keeps its old value.

If echo $TERM on the host still does not print xterm-256color (outside tmux and screen, which set their own), something on the host has changed it after login. A line such as export TERM=xterm in a startup file like ~/.bashrc does that. Correct that line, or put this one after it:

export TERM=xterm-256color

That line applies to every terminal you log in from, so use it only if they all support 256 colors.

If you use tmux, its own setting decides the colors inside it. See Colors wrong in tmux: get 256 colors and true color (default-terminal, RGB).

Get true color

24-bit color has no terminal type of its own. Programs that support it usually look for the variable COLORTERM set to truecolor. Set it on the host, in the same startup file:

export COLORTERM=truecolor

Some programs also have their own true-color option. Inside tmux, also add the RGB feature described in Colors wrong in tmux.

Spotted a mistake? Email [email protected].