LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   program: screen - caption (https://www.linuxquestions.org/questions/linux-software-2/program-screen-caption-237952/)

BoudewijnS 10-02-2004 01:59 PM

program: screen - caption
 
Hello everyone,

I have been using the program 'screen' for a while now, but I wanted to make it feel a bit better. So after some manual browsing I changed the caption to:
Code:

caption always "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%< %=| %c"
This gave me a nice bar at the bottom of the screen with a list of all open screens. However... each screen automatically gets a name, and I do not agree with this name... (that name would be 'bash')

So, most of you would now say something like: 'just change the name already!', and I did... but after a few screen creations and removals this became a bit tiering...

So this is my question:
How can I make the caption assign the screen name to the command that is currently being executed in that particular screen?

Regards,
Boudewijn


All times are GMT -5. The time now is 08:47 AM.