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?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityI 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?
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 workputty
, 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 properlyscreen
- if running inside GNU screen (or tmux)linux
- when logging in via a Linux console (e.g. Ctrl+Alt+F1)dumb
- when everything is brokenls /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 'SO- stop being evil'
Jul 25 '12 at 23:10
vt220
supports colours! I had one with orange on black! ;-) Sorry.
– Kusalananda♦
Nov 7 '18 at 11:23
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
infocmp
without argument gives you the settings for the active terminal. to list the other terminals you use toe
– Steven Penny
Jan 1 '18 at 14:17