I guess the best way to describe this is telling how to reproduce this bug.
1. Open xterm (or aterm, I guess rxvt is fine too).
2. Run cplay
3. Notice the title is changed to "cplay". If you play any file, the title will change to display current file.
4. Close cplay (press Q). Run screen.
5. Run cplay (now inside screen).
6. Notice there is no title update when inside screen.
If someone thinks screen does not support title updates, you should try to run emerge inside screen.
(I think I will make a patch to fix this)
Created attachment 75910 [details, diff]
I changed it. Now cplay does support lots of terminals to set title. Most of the changes were inspired by /usr/lib/portage/pym/output.py. I still don't know why portage uses "ESC]2;", while cplay uses "ESC]0;'.
Finally, when running cplay inside screen inside aterm, the title is not set, but attaching this screen to a xterm works. I guess this is a bug with screen and aterm.
Please test the patch, take a look at it and tell if it works, or how it can be improved.
This is a bug in screen. See
Ok, so we have one bug in screen (about it not working with aterm) and one bug with cplay.
The bug with cplay should be fixed with my patch. After reading the link you sent, I think we should also change cplay to use ESC]2; instead of ESC]0;. Is this correct? Should we change this too?
Anyway, I think this patch should be added to portage, and then fowarded upstream.
This is a minor problem, send it upstream first.