Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I tried vt100, vt102, vt220, and xterm by using top.

But I can't find their difference. Is there any other term type? What's their difference?

share|improve this question
up vote 27 down vote accepted

xterm is supposed to be a superset of vt220, in other words it's like vt220 but has more features. For example, xterm usually supports colors, but vt220 doesn't. You can test this by pressing z inside top.

In the same way, vt220 has more features than vt100. For example, vt100 doesn't seem to support F11 and F12.

Compare their features and escape sequences that your system thinks they have by running infocmp <term type 1> <term type 2>, e.g. infocmp vt100 vt220.

The full list varies from system to system. You should be able to get the list using toe, toe /usr/share/terminfo, or find ${TERMINFO:-/usr/share/terminfo}. If none of those work, you could also look at ncurses' terminfo.src, which is where most distributions get the data from these days.

But unless your terminal looks like this or this, there's only a few others you might want to use:

  • xterm-color - if you're on an older system and colors don't work
  • putty, konsole, Eterm, rxvt, gnome, etc. - if you're running an XTerm emulator and some of the function keys, Backspace, Delete, Home, and End don't work properly
  • screen - if running inside GNU screen (or tmux)
  • linux - when logging in via a Linux console (e.g. Ctrl+Alt+F1)
  • dumb - when everything is broken
share|improve this answer
Is that the full list of terminal type? Thank you~ – sam Jul 25 '12 at 16:28
@sam No, this isn't the full list. These are common ones. Anyone can invent a new terminal type, in principle. You can see what terminal types are available on your system by running ls /lib/terminfo/* /usr/share/terminfo/* (these are the paths on Debian, other distributions may have slightly different paths). Most of them are highly exotic. – Gilles Jul 25 '12 at 23:10
for a explanation of the codes have a look at: docs.intersystems.com/ens20152/csp/docbook/… – A. Binzxxxxxx Apr 7 at 9:38

Run infocmp wihtout any argument will give you all available xterm alternatives:

$> infocmp
xterm|xterm-debian|X11 terminal emulator,
    am, bce, km, mc5i, mir, msgr, npc, xenl,
    colors#8, cols#80, it#8, lines#24, pairs#64,

For more info check

$> ls /lib/terminfo/x/
xterm         xterm-256color  xterm-color     xterm-debian    xterm-mono
xterm-r5      xterm-r6        xterm-vt220     xterm-xfree86
share|improve this answer
+1 for ls /lib/terminfo/x/ also note the other directories beside x – A. Binzxxxxxx Apr 7 at 9:08
Did Mac OS have the terminfo directory? – zx1986 Apr 9 at 16:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.