UbuntuThis forum is for the discussion of Ubuntu Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I need to launch a xterm with a specific title. I used: xterm -T "MyTitle" -n "MyIconTitle"
but the title changes for a split second (when xterm is launched), and it reverts back to my login name.
I read the page of the link you gave me but I didn't understand how to solve my problem. Is there a function like his prom1 in my .bashrc that I need to remove? Or is what I want to do just impossible?
I found some lines in my .bashrc that defines PS1 (" case $XTERM ") and i jsut commented those lines. Now I can set the title with: xterm -T "MyTitle"
Last edited by WraithBand; 05-09-2012 at 08:14 AM.
As catkin said, bash allows you to optionally set the xterm title directly from the PS1 prompt string.
The part at the front between "\e]0;" and "\a" is the title setting section, and "\[" and "\]" have also been placed around it because it contains non-printing characters. Everything after that is the setting for the prompt itself.
So just remove that front part from your PS1 prompt setting and new shells shouldn't have their titles affected.