[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#313503: xterm -T string doen not work



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thomas Dickey wrote:
> On Tue, Jun 14, 2005 at 06:30:11AM +0200, LeRoy Cressy wrote:
> 
>>-----BEGIN PGP SIGNED MESSAGE-----
>>Hash: SHA1
>>
>>Package: xterm
>>Version: 4.3.0.dfsg.1-14
>>
>>With the new upgrade from testing I have been using .xsession with
>>multiple xterms to open various desktops using fvwm2.
>>
>>For instance a system named honey is opened on desk3
>>xterm -xrm "*Desk:3" -T Honey -n Honey -sl 300 -bg navy -fg "gold" &
>>
>>Now when I start X all of my xterms have the same title and not the
>>titles specified in .xsession.
>>
>>Each one has uid@hostname:/home/uid/ and not the title specified.
> 
> 
> That's done by your shell initialization - xterm doesn't do this by itself.
> Since it's done by the shell, it's done after any command-line option, and
> will override.
> 
Thanks, I found that the bash maintainers changed the /etc/bash.bashrc
with the following which I commented out until I can think of a solution
that involves testing to see if the xterm is called with -T or -n

# 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}\007"'
    ;;
*)
    ;;
esac



- --
 Rev. LeRoy D. Cressy  mailto:leroy@lrcressy.com   /\_/\
                       http://lrcressy.com        ( o.o )
                       Phone:  215-535-4037        > ^ <
                       FAX:    215-535-4285

gpg fingerprint:  62DE 6CAB CEE1 B1B3 359A  81D8 3FEF E6DA 8501 AFEA

For info on enigmail:    http://lrcressy.com/linux/mozilla.pdf
For info on gpg:         http://www.gnupg.org/

Jesus saith unto him, I am the way, the truth, and the life:
no man cometh unto the Father, but by me. (John 14:6)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFCrv3YP+/m2oUBr+oRApuHAJwMCDEyJvhKw7RD4fPgCdc0OBuwmgCfXRG8
aG1cR5CehAh7YnZR2IRezX4=
=Wqwx
-----END PGP SIGNATURE-----




Reply to: