D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

[LUG] Changing title of xterm

 

FWIW

I normally have a few terminals (consoles) open all the time and invariably I get 
lost in seeing which window I should be working in as as whenever I tried to change 
the title of the xterm then $%%& thing would go back to the default. 

Anyway finally found out what was wrong:

In .bashrc I had the following command

# If this is an xterm set the title to user@host:dir
# case "$TERM" in
# xterm*|rxvt*)
#    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
#     ;;
# *)
#     ;;
# esac

Solution: commented out the above.

Now I can quickly change title: easiest I have found is with xtitle.sh 
(http://www.cs.indiana.edu/~kinzler/xtitle/ )


-- 
Henry
Photocopies or faxes of my signature are not binding. 
This email has been signed with an electronic signature in accordance with 
subsection 7(3) of the Electronic Communications Act 2000.
Digital Key Signature: GPG RSA 0xFB447AA1 
Wed Mar 25 06:27:35 GMT 2009

Attachment: signature.asc
Description: Digital signature

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html