GNU Screen – Turn Off Dynamic Window Titling for Entire Session

gnu-screenpromptwindow title

I found:

However, none of the answers there solve my problem and my situation is slightly different from the linked question.

I work in a large infrastructure where I might log into any of hundreds of hosts in a given day. I don't have the authority to manage the default PROMPT_COMMAND on all of these servers.

I've read through the man page section about naming windows (LESS='+/^TITLES' man screen) and I don't see any solution therein to my problem.

How can I cause my windows in screen to KEEP the titles I set (with Ctrl-A A) regardless of the settings on servers I log into from my screen session?

(Example use case: I might have a window titled "db-hosts" where I can log into a random sampling of DB hosts to check them, logging out from any given one when I am done checking it and logging into a different one.)

Best Answer

The bug report I posted was answered almost immediately with a comment that this feature was added in a newer version of screen:

Since v.4.5.0 there is

defdynamictitle [on|off]

for global setting and

dynamictitle  [on|off]

for per window settings.

Related Question