% vim test.sh
E558: Terminal entry not found in terminfo
'linux' not known. Available builtin terminals are:
builtin_gui
builtin_riscos
builtin_amiga
builtin_beos-ansi
builtin_ansi
builtin_pcansi
builtin_win32
builtin_vt320
builtin_vt52
builtin_xterm
builtin_iris-ansi
builtin_debug
builtin_dumb
defaulting to 'ansi'
You can copy the necessary terminfo descriptions to remote hosts as follow:
1. On the local system, dump the description to text format,
infocmp linux > linux.ti
;
2. Copy to the remote host and compile,
tic linux.ti
, The descriptions will be stored in ~/.terminfo.
and
infocmp
are part of the ncurses or ncurses-bin packages in most Linux distributions, as well as most BSDs that use ncurses.
tic
REFERENCE
https://superuser.com/questions/431922/tmux-and-screen-256-term-not-supported-on-remote-hosts