Terminal problems with OS X Lion



So since I use Lion I have some problems when logging in a lot of Linux servers around.

I, for example, run the ‘screen’ command and get this:

Cannot find terminfo entry for ‘xterm-256color’.

The denomination of the terminal in Lion has changed from xterm-color (in Snow Leopard) to xterm-256color, and a lot of Linux distros still don’t recognize it.

Solution? Run this:

export TERM=xterm-color

And then, try again 😀