Strovent SystemsSign in
Reference

VT, xterm and terminal types

What a VT100, VT220 and xterm terminal are, and how they differ from 3270 and 5250.

VT terminals are the family of text terminals from DEC. Unix and Linux programs still talk to them: the VT100 (1978) and VT220 (1983) set the rules, and xterm extended them.

Character mode

Unlike 3270 and 5250, a VT terminal is character mode. Each key goes to the host as you press it. The host (or the shell it runs) sends text back and decides what is drawn. There are no fields and no AID keys. Everything a program draws, such as a menu, a color or a cursor move, is done with escape sequences embedded in the output. See Escape sequences.

Terminal types

A terminal type is a name that tells the host which sequences it understands. It is sent as the TERM value (over SSH) or negotiated with Telnet.

vt100          basic: cursor movement, bold, underline
vt220          adds 8-bit controls, more keys, national sets
xterm          adds many more sequences, mouse, alternate screen
xterm-256color xterm with 256 colors

Use xterm-256color with modern hosts. Use vt100 or vt220 for old systems or a router that only knows these. If the host says it does not know your terminal type, see TERM and terminfo.

Standards behind it

The common sequences come from the ANSI standards, now ECMA-48 and ISO 6429. VT-specific and xterm-specific extensions are documented by DEC and in the xterm control sequences document (see VT and terminal links).

Over what

A VT session runs over SSH (encrypted, the usual way), over Mosh, or over plain Telnet (not encrypted). See Telnet basics and SSH: how it works.

Spotted a mistake? Email [email protected].