Is it possible to write a script to change the name and turn on monitoring for the current tab assuming that it is being run in screen?
Thanks.
Screen runs transparently, so detecting the screen session is hard. If you try sending key presses, that would work, and would fill your terminal with a tiny bit of junk if you're not in a session.