Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62918 - xtermTitle() does not change title of advanced xterms
Summary: xtermTitle() does not change title of advanced xterms
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-09-05 05:37 UTC by John Steele Scott
Modified: 2004-10-22 08:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Steele Scott 2004-09-05 05:37:52 UTC
The xtermTitle method in /usr/lib/python/pym/output.py checks for TERM=xterm. However, /etc/termcap lists another 23 terminals which have names beginning with "xterm". Personally, I use TERM=xterm-xfree86, because then I can get a colourised emacs on a Solaris server I need to work on sometimes. xtermTitle() should change the title for these terminals as well. 

The suggested bash idiom is shown at http://www.tldp.org/HOWTO/Xterm-Title-4.html#ss4.3

Perhaps in python the solution would look something like:
for termtype in ["xterm","Eterm","aterm","rxvt","screen"]:
  if myt.startswith(termtype):
    ... change title bar . . . 

Cool?

Reproducible: Always
Steps to Reproduce:
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2004-10-22 08:48:13 UTC
Bug has been fixed and released in stable portages on or before 2.0.51-r2