Unable to start screen when $TERM is longer than 20 characters, example TERM="rxvt-unicode-256color". It says "$TERM too long - sorry.". There is a bug report about this here http://savannah.gnu.org/bugs/?30880 and it is more than a year old. Inside there are links to patches, there are similar patches used on other projects: http://projects.archlinux.org/svntogit/packages.git/tree/screen/trunk/screen-4.0.3-long-term.patch
Since nothing happens with the source code of screen, I am attaching a fix that adds the patch to the sysutils/screen port. The buffer is made 31+1 long, this leaves some room for longer TERM variables, though the length is arbitrary.
Fix: Patch attached with submission follows:
How-To-Repeat: export TERM="rxvt-unicode-256color"
Over to maintainer (via the GNATS Auto Assign Tool)
Patch looks OK however packaging the patches for inclusion into the ports
tree is incorrect. I will repackage the patches before committing them.