Many programs use the
TERM variable and the database
/usr/lib/terminfo/* to decide
which strings to send for clear screen, move cursor, etc.,
and sometimes also to decide which string is sent
by the users backspace key, function keys etc.
This value is first set by the kernel (for the console).
Usually, this variable is re-set by
the argument specified in
Sometimes, it is also set in
Older systems use
TERM=con80x25. Newer systems (with
ncurses 1.8.6) use the more specific
However, old versions of
setterm test for
TERM=con* and hence fail
to work with
Since kernel version 1.3.2, the kernel default for the console is
If you have a termcap without entry for linux, add the word linux to the entry for the console:
/usr/lib/terminfo/l/linuxa copy of or symbolic link to
The terminfo entry for the linux console from ncurses 1.8.6 misses the
kich1=\E[2~, needed by some programs.
Edit the file and