How to display the current “session” name or “sockname” of a screen session in the status bar

gnu-screensessionstatus

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?

Best Answer

This is coming in the next version: http://savannah.gnu.org/bugs/index.php?23738

Also, you can use the terminal variable $STY, though people seem to get inconsistent results with it.

Related Question