I'm looking for a way to get the current window title in GNU screen .
I have a script that use screen -X title something
to change the window title when running and I would like to set it back to it's previous value at the end of the script.
Linux – Get screen window title
command-line-interfacegnu-screenlinux
Related Topic
- Set xterm (PuTTY) window title when using screen
- GNU screen configuration for optimal keycode recognition
- Linux – send some text to the STDIN of an active process running in a screen session
- Linux – How to re-order windows, change the scroll shortcut, and modify the status bar contents in GNU Screen
- Linux – How to Check if Running Inside a GNU Screen
- GNU screen, how to get current sessionname programmatically
Best Answer
"screen -X" attach a command to a specified screen session, it has no effect on the window title. Either your script uses an escape sequence to set the screen window title, or your screenrc does. Take notice that screen windows are unrelated to terminal (xterm, etc) windows.