TERM=linux tells the ncurses library and various applications the type of
terminal emulation in force on the current virtual or physical terminal.
The terminfo database and the ncurses library provide various emulations.
"linux" and "vt102" or "vt100" should be available. To really grasp all
this I suggest obtaining the ncurses source package.