Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'screen window list' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
screen window list
Authored by: r0adrage on Mar 03, '03 03:28:25PM
To help keep track of screen sessions, you can use the status line. Put the following in your .screenrc:

termcapinfo vt100* 'hs:ts=\E]2;:fs=\007:ds=\E]0;screen\007'
defhstatus "screen:^Ew"

(all characters are literal, ie. ^E is a carat (^) and an E, not control-E) and it will set the titlebar to list all windows by number and title. the vt100 line is snagged from the screen xterm hints, and tells screen to use the titlebar as the status line. The second line sets up the status to show the list of windows. The current screen-window will have a * by its number. Its still not tabs, but it is easier than trying to remember which window is which. Now, if anyone knows how to dynamically change the title of a screen window to be the currently running program, please let me know!

[ Reply to This | # ]

screen window list
Authored by: jyncroft on Mar 04, '03 11:13:10AM

I can't get this to work...

$TERM=vt100
$TERMCAP=<some strange text, 4 characters>

That's before invoking screen. Afterwards...

$TERM=screen-w
$TERMCAP=<a lot of stuff, all readable>

with your two lines in my .screenrc file, invoking screen just spews out the following on the screen...

E]2;screen:0* zsh07E]0;screen07E]2;screen:0* zsh07

Is there a problem with the lines that got posted vs what should be posted?



[ Reply to This | # ]
screen window list
Authored by: nivex on Mar 29, '06 01:08:16PM
The code posted somehow stripped the backslash characters and the chars following it. Here's what I have in my screenrc that works:

termcapinfo xterm* 'hs:ts=\E]2;:fs=\007:ds=\E]0;screen\007'
This looks OK in preview... hopefully it makes it to post OK.

[ Reply to This | # ]