screen-users
[Top][All Lists]
Advanced

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

string substitution for session name


From: Brian T.N. Gunney
Subject: string substitution for session name
Date: Tue, 6 Feb 2007 21:42:27 -0800
User-agent: Mutt/1.5.13 (2006-08-11)

After wanting to request a string substitution for the session name,
I decided to hack it myself.  The attached patch (to screen-4.0.2)
allows you to replace %S with the session name for the purpose of
displaying in the status line, for example:

hardstatus lastline "%-Lw%{= BW}%48>%n%f* %t%{-}%+Lw%<  %S/%c"

I found this particularly useful for those who give their sessions
specific meaningful names.  I work on several projects, having one
screen session for each project.  Each one look the same (emac, code
repository operations, ssh here, ssh there, etc) so it's not instantly
clear which session I'm looking at.  So having the session name in the
status line is helpful.

I see that there window groups in development, but using window
groups for my multiple projects in a single screen session would
not work as smoothly as having multiple sessions.

Thanks for developing this awesome tool!
-- 
Brian T.N. Gunney

Attachment: screen-4.0.2-patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]