In display.h, d_termname is limited to 20 characters(plus the ending NUL) and rxvt-unicode-256color(installed by sys-libs/ncurses) has 21 characters.
Created attachment 254617 [details, diff] Raise the length of d_termnane to NAME_MAX
Comment on attachment 254617 [details, diff] Raise the length of d_termnane to NAME_MAX If strlen(getenv("TERM)) > sizeof(d_termname), screen refuses to start. I've rebuilt screen with that patch and it seems to work
Stelian, thanks for your report. This should go upstream too.
Created attachment 254625 [details, diff] Patch better suited for upstream, should compile on BSDs too
Created attachment 254627 [details, diff] Fix typo in last patch
Might be similar to: http://savannah.gnu.org/bugs/?30880
+*screen-4.0.3-r2 (17 Nov 2010) + + 17 Nov 2010; Justin Lecher <jlec@gentoo.org> + +files/4.0.3-extend-d_termname.patch, screen-4.0.3.ebuild, + +screen-4.0.3-r2.ebuild: + Fix for long names in TERM, thanks Stelian Ionescu #345863 +
Created attachment 254669 [details, diff] Fix hardcoded size of TERM in another place as well As noticed in the Savannah bug, there was another place in the source code where the terminal name was being copied, so I updated that too
Sorry for missing that one
Is this fixed now?
Yes, works here
Thanks closing then.