LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-27-2003, 11:35 AM   #1
MiscGeek
Member
 
Registered: Jan 2003
Location: Georgia, US
Distribution: RHEL WS4
Posts: 189

Rep: Reputation: 30
How to set the window title for Eterm dynamically?


I know there is probably a pretty simple answer to this question but I haven't found it yet

When I start xterm the window title is $USER@$HOSTNAME:<CurrentDirectory> and this changes dynamically. How do get Eterm to do the same thing? I found the -T option which will let me set the title but I can't figure out how to make it change dynamically.

Any ideas?

Thanks,
Mike
 
Old 09-29-2003, 04:37 AM   #2
m0rl0ck
Member
 
Registered: Nov 2002
Distribution: A totally 133t distro :)
Posts: 358

Rep: Reputation: 31
Put someting like this in your .bashrc:

case $TERM in

ansi*)


PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}: ${TTIME}:${TTIMEM} :${PWD}\007"'

;;
esac

Except instead of ansi put what ever "echo $TERM" returns in Eterm.
 
Old 09-29-2003, 10:10 PM   #3
MiscGeek
Member
 
Registered: Jan 2003
Location: Georgia, US
Distribution: RHEL WS4
Posts: 189

Original Poster
Rep: Reputation: 30
Thanks m0rl0ck! That got me part of the way The title of the Eterm window is set when it first loads. What I was shooting for is how xterm changes it's title as you move through directories or connect to a new host.

I'm not sure that this is even possible in Eterm but I'm hoping I usually have several terminal windows open and connected to different hosts and it can get confusing very quickly when all the window titles are the same

Thanks again though!

Mike
 
Old 09-29-2003, 10:26 PM   #4
m0rl0ck
Member
 
Registered: Nov 2002
Distribution: A totally 133t distro :)
Posts: 358

Rep: Reputation: 31
That should have done it. Make sure the PROMPT_COMMAND etc is all on one line no newlines.
 
Old 09-29-2003, 10:33 PM   #5
MiscGeek
Member
 
Registered: Jan 2003
Location: Georgia, US
Distribution: RHEL WS4
Posts: 189

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by m0rl0ck
That should have done it. Make sure the PROMPT_COMMAND etc is all on one line no newlines.
Okay, don't know what I did wrong the first time but, I removed it and pasted it again at it's working now! Must have had a stray char in there somewhere the first time.

You rock dude!

Mike

P.S. Found another way to make it work If you set the terminal name xterm like this "Eterm --term-name xterm" it picks up the xterm settings.

Last edited by MiscGeek; 09-30-2003 at 07:06 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change font COLOR in window title aeruzcar Linux - General 3 09-15-2005 12:26 AM
How to set mlterm title? fossilet Linux - Software 2 04-13-2005 01:10 AM
Eterm window location aeruzcar Linux - Software 3 10-10-2004 06:22 PM
How to set title in xterm according to what program running ? tvn Linux - General 1 07-25-2004 08:58 PM
change window title in terminal sandman Linux - General 4 12-15-2002 04:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration