The attached patch patches Portage's output.py::xtermTitle to add support for titles in GNU Screen, it does so by checking if the TERM starts with 'screen' (Screen uses either 'screen' or 'screen.previousterm' (screen.linux in my case) for TERM). If so, it sends a magic string that updates the window's title to what an xterm window would get. The magic string always works if you are using Screen because it is a terminal emulator. I've been using this patch for 2-3 months without problems, portage-2.0.51-r3 - portage-2.0.51-r14 on the x86 platform. See screen (1) ,,TITLES (naming windows)'' for information on the magic string. See screen (1) ,,THE VIRTUAL TERMINAL'' for information on the TERM naming conventions.
Created attachment 49038 [details, diff] the patch
This is already in ~arch.
Ah, that's good :)
Does anybody know why this was removed from portage 2.0.51.20? The changelog mentions 17 Apr 2005; Jason Stubbs <jstubbs@gentoo.org> pym/output.py: Reverted the feature to make use of screen titles. but doesn't say why.
bug 75670