How do I add the GNU/Screen's session-name (as set by C-a :sessionname foo
) to its' status line?
The manual says that S
is the escape code for session name but when I try to add %S
to my caption I get 0S
instead of foo
.
What am I doing wrong?
%S
to your hardstatus line should work like you expect. I guess you have made an error in your .screenrc. Maybe you want to post it here?