How do I display the current "session" name or "sockname" of a screen session in the status bar?

Neg_EV picture Neg_EV · Mar 19, 2010 · Viewed 27.6k times · Source

I run multiple screen sessions each created with 'screen -S name' and I would like to be able to display in the status bar the name I used to create the current screen session.

However, I cannot seem to accomplish this. Any ideas?

Answer

nicola picture nicola · Apr 5, 2012

The easiest way to display the sessionname is

  C-a : 
  sessionname

(without specifying a name after sessionname)

See the "CUSTOMIZATION" section in man screen