Screen: Cannot find terminfo entry for 'xterm-256color'

Vinayak Agarwal picture Vinayak Agarwal · Sep 10, 2012 · Viewed 72k times · Source

When I run

screen

on the remote host(running Linux), I obtain the following error:

Cannot find terminfo entry for 'xterm-256color'.

I am running terminal on Mac OSX Lion to access the remote host. I have googled to find out the solution to this problem and it appears that people suggest doing

export TERM=xterm-color

which doesn't work for me.

Please help.

Answer

BigSN picture BigSN · Nov 26, 2013

Find out which TERM is supported:

ls /usr/share/terminfo/x

this will give you a list of supported TERMs i.e.

xterm
xterm-xfree86

set the environment variable:

export TERM=xterm-xfree86

and run screen:

TERMINFO='/usr/share/terminfo/' screen