OpenWRT: Cannot find termcap entry for 'xterm-256color'

16 Nov 2013 10:50 openwrt

I’ve got my TERM environment variable set to xterm-256color (even though I’m using gnome-terminal, but that’s a different story). When I ssh into my OpenWRT router, I get presented with the error message:

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

The fix is simple:

cd /usr/share/terminfo/x
ln -s xterm-color xterm-256color