You are not logged in.

#1 2008-01-28 14:59:26

bionnaki
Member
Registered: 2006-09-05
Posts: 289

screen/xterm - show titles?

I run rtorrent, irssi, and moc together in screen with xterm. the title of the xterm window is always just "xterm" but I would like it to change to either rtorrent, irssi, or moc depending on what screen I have open. how can I do this?

thanks.

Offline

#2 2008-01-28 22:23:10

sejjiin
Member
Registered: 2008-01-10
Posts: 9

Re: screen/xterm - show titles?

Not sure what you mean by "together in screen with xterm."  You can always force a title to the xterm with the -T flag, but I'm not sure if that's what you're looking for.

Offline

#3 2008-01-29 00:03:48

dir
Member
From: dotph
Registered: 2007-10-10
Posts: 20

Re: screen/xterm - show titles?

add this lines to your .screenrc

hardstatus string "SCREEN @ %H: %-n - %t"
termcapinfo xterm 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'

info here: http://tldp.org/HOWTO/Bash-Prompt-HOWTO/x395.html

Offline

#4 2008-01-29 00:49:40

bionnaki
Member
Registered: 2006-09-05
Posts: 289

Re: screen/xterm - show titles?

added that to .screenrc and the title still just says "xterm"...

Offline

#5 2008-01-29 02:24:21

kr22
Member
Registered: 2008-01-19
Posts: 8

Re: screen/xterm - show titles?

That worked for me.

Now the title of the xterm will display the window title I set using "Ctrl-A A" smile

Thanks for the tip.

Offline

#6 2008-01-29 06:44:58

dr_te_z
Member
From: Zoetermeer, the Netherlands
Registered: 2006-12-06
Posts: 154

Re: screen/xterm - show titles?

If using bash:
then "you can use the

COMMAND_PROMPT

for this. An old topic of mine: http://www.justlinux.com/forum/showthread.php?t=134178 ".


Somewhere between "too small" and "too large" lies the size that is just right.
- Scott Hayes

Offline

#7 2008-01-29 07:11:59

bionnaki
Member
Registered: 2006-09-05
Posts: 289

Re: screen/xterm - show titles?

nevermind. I only detached screen - didnt restart it. working now. thanks.

Offline

Board footer

Powered by FluxBB